diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-21 12:46:07 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-21 12:46:07 +0000 |
commit | 01545e4adee42a9e7f24e3c09758b5a64b772eff (patch) | |
tree | 713a5ba454e4cb6a95fd384126189f9be3b4b4f4 /lib/redmine/scm | |
parent | 9db5d29287bbd50897ba639593d1186f1b2b625a (diff) | |
download | redmine-01545e4adee42a9e7f24e3c09758b5a64b772eff.tar.gz redmine-01545e4adee42a9e7f24e3c09758b5a64b772eff.zip |
cleanup: rubocop: fix Layout/ClosingParenthesisIndentation in lib/redmine/scm/adapters/git_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19137 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm')
-rw-r--r-- | lib/redmine/scm/adapters/git_adapter.rb | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb index b25331ddb..1d0b770b8 100644 --- a/lib/redmine/scm/adapters/git_adapter.rb +++ b/lib/redmine/scm/adapters/git_adapter.rb @@ -357,12 +357,15 @@ module Redmine elsif line =~ /^author (.+)/ authors_by_commit[identifier] = $1.strip elsif line =~ /^\t(.*)/ - blame.add_line($1, Revision.new( - :identifier => identifier, - :revision => identifier, - :scmid => identifier, - :author => authors_by_commit[identifier] - )) + blame.add_line( + $1, + Revision.new( + :identifier => identifier, + :revision => identifier, + :scmid => identifier, + :author => authors_by_commit[identifier] + ) + ) identifier = '' author = '' end @@ -404,11 +407,12 @@ module Redmine full_args << '-c' << 'log.decorate=no' end full_args += args - ret = shellout( - self.class.sq_bin + ' ' + full_args.map { |e| shell_quote e.to_s }.join(' '), - options, - &block - ) + ret = + shellout( + self.class.sq_bin + ' ' + full_args.map { |e| shell_quote e.to_s }.join(' '), + options, + &block + ) if $? && $?.exitstatus != 0 raise ScmCommandAborted, "git exited with non-zero status: #{$?.exitstatus}" end |