From: Toshi MARUYAMA Date: Fri, 20 Nov 2020 11:35:52 +0000 (+0000) Subject: fix source indent of lib/redmine/scm/adapters/cvs_adapter.rb X-Git-Tag: 4.2.0~375 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f91b5bf3dabfffc3a9d543c4c0c522fdcff78b4c;p=redmine.git fix source indent of lib/redmine/scm/adapters/cvs_adapter.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20443 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/scm/adapters/cvs_adapter.rb b/lib/redmine/scm/adapters/cvs_adapter.rb index 6c25a8034..71cbe21f1 100644 --- a/lib/redmine/scm/adapters/cvs_adapter.rb +++ b/lib/redmine/scm/adapters/cvs_adapter.rb @@ -314,12 +314,13 @@ module Redmine io.each_line do |line| next unless line =~ %r{^([\d\.]+)\s+\(([^\)]+)\s+[^\)]+\):\s(.*)$} blame.add_line( - $3.rstrip, - Revision.new( - :revision => $1, - :identifier => nil, - :author => $2.strip - )) + $3.rstrip, + Revision.new( + :revision => $1, + :identifier => nil, + :author => $2.strip + ) + ) end end blame @@ -379,10 +380,12 @@ module Redmine full_args.map do |e| full_args_locale << scm_iconv(@path_encoding, 'UTF-8', e) end - ret = shellout( - self.class.sq_bin + ' ' + full_args_locale.map { |e| shell_quote e.to_s }.join(' '), - &block - ) + ret = + shellout( + self.class.sq_bin + ' ' + + full_args_locale.map {|e| shell_quote e.to_s}.join(' '), + &block + ) if $? && $?.exitstatus != 0 raise ScmCommandAborted, "cvs exited with non-zero status: #{$?.exitstatus}" end