summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm/adapters
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-27 15:19:13 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-27 15:19:13 +0000
commit94647052a8e750fdfa4ffed9cec6cf9e506a9ea7 (patch)
tree9220e4e0436d2188cd34b0d63e16e18c8b24ab4a /lib/redmine/scm/adapters
parent8ddbbcf4a67351277c1e37538bd5a0c25cd5757f (diff)
downloadredmine-94647052a8e750fdfa4ffed9cec6cf9e506a9ea7.tar.gz
redmine-94647052a8e750fdfa4ffed9cec6cf9e506a9ea7.zip
fix source indent of lib/redmine/scm/adapters/git_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20214 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm/adapters')
-rw-r--r--lib/redmine/scm/adapters/git_adapter.rb32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb
index 753e6c889..192df0229 100644
--- a/lib/redmine/scm/adapters/git_adapter.rb
+++ b/lib/redmine/scm/adapters/git_adapter.rb
@@ -190,23 +190,23 @@ module Redmine
lines = []
git_cmd(cmd_args) {|io| lines = io.readlines}
begin
- id = lines[0].split[1]
- author = lines[1].match('Author:\s+(.*)$')[1]
- time = Time.parse(lines[4].match('CommitDate:\s+(.*)$')[1])
- Revision.
- new(
- {
- :identifier => id,
- :scmid => id,
- :author => author,
- :time => time,
- :message => nil,
- :paths => nil
- }
- )
+ id = lines[0].split[1]
+ author = lines[1].match('Author:\s+(.*)$')[1]
+ time = Time.parse(lines[4].match('CommitDate:\s+(.*)$')[1])
+ Revision.
+ new(
+ {
+ :identifier => id,
+ :scmid => id,
+ :author => author,
+ :time => time,
+ :message => nil,
+ :paths => nil
+ }
+ )
rescue NoMethodError => e
- logger.error("The revision '#{path}' has a wrong format")
- return nil
+ logger.error("The revision '#{path}' has a wrong format")
+ return nil
end
rescue ScmCommandAborted
nil