@@ -211,7 +211,7 module Redmine | |||||
211 | if identifier_to |
|
211 | if identifier_to | |
212 | cmd = "#{GIT_BIN} --git-dir #{target('')} diff --no-color #{shell_quote identifier_to} #{shell_quote identifier_from}" |
|
212 | cmd = "#{GIT_BIN} --git-dir #{target('')} diff --no-color #{shell_quote identifier_to} #{shell_quote identifier_from}" | |
213 | else |
|
213 | else | |
214 | cmd = "#{GIT_BIN} --git-dir #{target('')} show #{shell_quote identifier_from}" |
|
214 | cmd = "#{GIT_BIN} --git-dir #{target('')} show --no-color #{shell_quote identifier_from}" | |
215 | end |
|
215 | end | |
216 |
|
216 | |||
217 | cmd << " -- #{shell_quote path}" unless path.empty? |
|
217 | cmd << " -- #{shell_quote path}" unless path.empty? | |
@@ -255,7 +255,7 module Redmine | |||||
255 | if identifier.nil? |
|
255 | if identifier.nil? | |
256 | identifier = 'HEAD' |
|
256 | identifier = 'HEAD' | |
257 | end |
|
257 | end | |
258 | cmd = "#{GIT_BIN} --git-dir #{target('')} show #{shell_quote(identifier + ':' + path)}" |
|
258 | cmd = "#{GIT_BIN} --git-dir #{target('')} show --no-color #{shell_quote(identifier + ':' + path)}" | |
259 | cat = nil |
|
259 | cat = nil | |
260 | shellout(cmd) do |io| |
|
260 | shellout(cmd) do |io| | |
261 | io.binmode |
|
261 | io.binmode |
General Comments 0
You need to be logged in to leave comments.
Login now