mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Merged r4386 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@4440 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
541a371b41
commit
b58382ef2e
@ -211,7 +211,7 @@ module Redmine
|
|||||||
if identifier_to
|
if identifier_to
|
||||||
cmd = "#{GIT_BIN} --git-dir #{target('')} diff --no-color #{shell_quote identifier_to} #{shell_quote identifier_from}"
|
cmd = "#{GIT_BIN} --git-dir #{target('')} diff --no-color #{shell_quote identifier_to} #{shell_quote identifier_from}"
|
||||||
else
|
else
|
||||||
cmd = "#{GIT_BIN} --git-dir #{target('')} show #{shell_quote identifier_from}"
|
cmd = "#{GIT_BIN} --git-dir #{target('')} show --no-color #{shell_quote identifier_from}"
|
||||||
end
|
end
|
||||||
|
|
||||||
cmd << " -- #{shell_quote path}" unless path.empty?
|
cmd << " -- #{shell_quote path}" unless path.empty?
|
||||||
@ -255,7 +255,7 @@ module Redmine
|
|||||||
if identifier.nil?
|
if identifier.nil?
|
||||||
identifier = 'HEAD'
|
identifier = 'HEAD'
|
||||||
end
|
end
|
||||||
cmd = "#{GIT_BIN} --git-dir #{target('')} show #{shell_quote(identifier + ':' + path)}"
|
cmd = "#{GIT_BIN} --git-dir #{target('')} show --no-color #{shell_quote(identifier + ':' + path)}"
|
||||||
cat = nil
|
cat = nil
|
||||||
shellout(cmd) do |io|
|
shellout(cmd) do |io|
|
||||||
io.binmode
|
io.binmode
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user