@@ -35,7 +35,7 module Redmine | |||
|
35 | 35 | def branches |
|
36 | 36 | return @branches if @branches |
|
37 | 37 | @branches = [] |
|
38 | cmd = "#{GIT_BIN} --git-dir #{target('')} branch" | |
|
38 | cmd = "#{GIT_BIN} --git-dir #{target('')} branch --no-color" | |
|
39 | 39 | shellout(cmd) do |io| |
|
40 | 40 | io.each_line do |line| |
|
41 | 41 | @branches << line.match('\s*\*?\s*(.*)$')[1] |
@@ -86,7 +86,7 module Redmine | |||
|
86 | 86 | |
|
87 | 87 | def lastrev(path,rev) |
|
88 | 88 | return nil if path.nil? |
|
89 | cmd = "#{GIT_BIN} --git-dir #{target('')} log --date=iso --pretty=fuller --no-merges -n 1 " | |
|
89 | cmd = "#{GIT_BIN} --git-dir #{target('')} log --no-color --date=iso --pretty=fuller --no-merges -n 1 " | |
|
90 | 90 | cmd << " #{shell_quote rev} " if rev |
|
91 | 91 | cmd << "-- #{shell_quote path} " unless path.empty? |
|
92 | 92 | shellout(cmd) do |io| |
@@ -114,7 +114,7 module Redmine | |||
|
114 | 114 | def revisions(path, identifier_from, identifier_to, options={}) |
|
115 | 115 | revisions = Revisions.new |
|
116 | 116 | |
|
117 | cmd = "#{GIT_BIN} --git-dir #{target('')} log --raw --date=iso --pretty=fuller " | |
|
117 | cmd = "#{GIT_BIN} --git-dir #{target('')} log --no-color --raw --date=iso --pretty=fuller " | |
|
118 | 118 | cmd << " --reverse " if options[:reverse] |
|
119 | 119 | cmd << " --all " if options[:all] |
|
120 | 120 | cmd << " -n #{options[:limit]} " if options[:limit] |
@@ -209,7 +209,7 module Redmine | |||
|
209 | 209 | path ||= '' |
|
210 | 210 | |
|
211 | 211 | if identifier_to |
|
212 | cmd = "#{GIT_BIN} --git-dir #{target('')} diff #{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 | 213 | else |
|
214 | 214 | cmd = "#{GIT_BIN} --git-dir #{target('')} show #{shell_quote identifier_from}" |
|
215 | 215 | end |
|
1 | NO CONTENT: modified file, binary diff hidden |
General Comments 0
You need to be logged in to leave comments.
Login now