]> source.dussan.org Git - redmine.git/commitdiff
Added missing --no-color option in some git shell-outs. #5324
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>
Sun, 7 Nov 2010 15:19:05 +0000 (15:19 +0000)
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>
Sun, 7 Nov 2010 15:19:05 +0000 (15:19 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4386 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/git_adapter.rb

index 1db57c7d652518485fa7f46931adeae68bcebcbd..e801f22f7b6af10c88f84959ea9d4aaca57fe34a 100644 (file)
@@ -211,7 +211,7 @@ module Redmine
           if identifier_to
             cmd = "#{GIT_BIN} --git-dir #{target('')} diff --no-color #{shell_quote identifier_to} #{shell_quote identifier_from}" 
           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
 
           cmd << " -- #{shell_quote path}" unless path.empty?
@@ -255,7 +255,7 @@ module Redmine
           if identifier.nil?
             identifier = 'HEAD'
           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
           shellout(cmd) do |io|
             io.binmode