mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
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
This commit is contained in:
parent
59336036e4
commit
75acf141d5
@ -55,7 +55,7 @@ module Redmine
|
|||||||
end
|
end
|
||||||
|
|
||||||
def scm_version_from_command_line
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -171,7 +171,7 @@ module Redmine
|
|||||||
cmd_args << rev if rev
|
cmd_args << rev if rev
|
||||||
cmd_args << "--" << path unless path.empty?
|
cmd_args << "--" << path unless path.empty?
|
||||||
lines = []
|
lines = []
|
||||||
git_cmd(cmd_args) { |io| lines = io.readlines }
|
git_cmd(cmd_args) {|io| lines = io.readlines}
|
||||||
begin
|
begin
|
||||||
id = lines[0].split[1]
|
id = lines[0].split[1]
|
||||||
author = lines[1].match('Author:\s+(.*)$')[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)
|
cmd_args << "-p" << git_identifier << "--" << scm_iconv(@path_encoding, 'UTF-8', path)
|
||||||
blame = Annotate.new
|
blame = Annotate.new
|
||||||
content = nil
|
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
|
# git annotates binary files
|
||||||
return nil if ScmData.binary?(content)
|
return nil if ScmData.binary?(content)
|
||||||
identifier = ''
|
identifier = ''
|
||||||
@ -409,7 +409,7 @@ module Redmine
|
|||||||
full_args += args
|
full_args += args
|
||||||
ret =
|
ret =
|
||||||
shellout(
|
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,
|
options,
|
||||||
&block
|
&block
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user