##// END OF EJS Templates
Added missing --no-color option in some git shell-outs. #5324...
Jean-Baptiste Barth -
r4272:2ca9bb3cca0b
parent child
Show More
@@ -211,7 +211,7 module Redmine
211 211 if identifier_to
212 212 cmd = "#{GIT_BIN} --git-dir #{target('')} diff --no-color #{shell_quote identifier_to} #{shell_quote identifier_from}"
213 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 215 end
216 216
217 217 cmd << " -- #{shell_quote path}" unless path.empty?
@@ -255,7 +255,7 module Redmine
255 255 if identifier.nil?
256 256 identifier = 'HEAD'
257 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 259 cat = nil
260 260 shellout(cmd) do |io|
261 261 io.binmode
General Comments 0
You need to be logged in to leave comments. Login now