]> source.dussan.org Git - redmine.git/commitdiff
fix source indent of lib/redmine/scm/adapters/git_adapter.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 27 Oct 2020 15:19:13 +0000 (15:19 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 27 Oct 2020 15:19:13 +0000 (15:19 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20214 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/git_adapter.rb

index 753e6c889e0d03fb840d621b010a9f300f31e07d..192df0229b05ee87887d10be9b24af06e4e3bd3e 100644 (file)
@@ -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