summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-23 14:26:48 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-23 14:26:48 +0000
commit75acf141d5a6660e8c3734e3eba6e0154bd0bc53 (patch)
treef543710ba9fd58ef25f9a490e63a9c853739431d
parent59336036e41a8f20626bb5f107dd87a3f7de244f (diff)
downloadredmine-75acf141d5a6660e8c3734e3eba6e0154bd0bc53.tar.gz
redmine-75acf141d5a6660e8c3734e3eba6e0154bd0bc53.zip
cleanup: rubocop: fix Layout/SpaceInsideBlockBraces in lib/redmine/scm/adapters/git_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19197 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--lib/redmine/scm/adapters/git_adapter.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb
index 1d0b770b8..88c52c361 100644
--- a/lib/redmine/scm/adapters/git_adapter.rb
+++ b/lib/redmine/scm/adapters/git_adapter.rb
@@ -55,7 +55,7 @@ module Redmine
end
def scm_version_from_command_line
- shellout("#{sq_bin} --version") { |io| io.read }.to_s
+ shellout("#{sq_bin} --version") {|io| io.read}.to_s
end
end
@@ -171,7 +171,7 @@ module Redmine
cmd_args << rev if rev
cmd_args << "--" << path unless path.empty?
lines = []
- git_cmd(cmd_args) { |io| lines = io.readlines }
+ git_cmd(cmd_args) {|io| lines = io.readlines}
begin
id = lines[0].split[1]
author = lines[1].match('Author:\s+(.*)$')[1]
@@ -345,7 +345,7 @@ module Redmine
cmd_args << "-p" << git_identifier << "--" << scm_iconv(@path_encoding, 'UTF-8', path)
blame = Annotate.new
content = nil
- git_cmd(cmd_args) { |io| io.binmode; content = io.read }
+ git_cmd(cmd_args) {|io| io.binmode; content = io.read}
# git annotates binary files
return nil if ScmData.binary?(content)
identifier = ''
@@ -409,7 +409,7 @@ module Redmine
full_args += args
ret =
shellout(
- self.class.sq_bin + ' ' + full_args.map { |e| shell_quote e.to_s }.join(' '),
+ self.class.sq_bin + ' ' + full_args.map {|e| shell_quote e.to_s}.join(' '),
options,
&block
)