]> source.dussan.org Git - redmine.git/commitdiff
scm: git: add --no-color option to run "git --version".
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 20 Feb 2011 01:33:09 +0000 (01:33 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 20 Feb 2011 01:33:09 +0000 (01:33 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4885 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/git_adapter.rb

index ce46057ccddd862720ca92c8ddf5025fbc99ac85..f6a9b0d7cfe3bb82e9f1fa13f448f66b286162a2 100644 (file)
@@ -49,7 +49,7 @@ module Redmine
           end
 
           def scm_version_from_command_line
-            shellout("#{sq_bin} --version") { |io| io.read }.to_s
+            shellout("#{sq_bin} --version --no-color") { |io| io.read }.to_s
           end
         end