##// END OF EJS Templates
scm: git: use "-c log.decorate=no" option instead of "--no-decorate" of "git log" above Git 1.7.2 (#8081, #8083)....
Toshi MARUYAMA -
r5229:b23bf1f2999b
parent child
Show More
@@ -143,7 +143,7 module Redmine
143 143
144 144 def lastrev(path, rev)
145 145 return nil if path.nil?
146 cmd_args = %w|log --no-decorate --no-color --encoding=UTF-8 --date=iso --pretty=fuller --no-merges -n 1|
146 cmd_args = %w|log --no-color --encoding=UTF-8 --date=iso --pretty=fuller --no-merges -n 1|
147 147 cmd_args << rev if rev
148 148 cmd_args << "--" << path unless path.empty?
149 149 lines = []
@@ -171,7 +171,7 module Redmine
171 171
172 172 def revisions(path, identifier_from, identifier_to, options={})
173 173 revisions = Revisions.new
174 cmd_args = %w|log --no-decorate --no-color --encoding=UTF-8 --raw --date=iso --pretty=fuller|
174 cmd_args = %w|log --no-color --encoding=UTF-8 --raw --date=iso --pretty=fuller|
175 175 cmd_args << "--reverse" if options[:reverse]
176 176 cmd_args << "--all" if options[:all]
177 177 cmd_args << "-n" << "#{options[:limit].to_i}" if options[:limit]
@@ -342,6 +342,7 module Redmine
342 342 full_args = [GIT_BIN, '--git-dir', repo_path]
343 343 if self.class.client_version_above?([1, 7, 2])
344 344 full_args << '-c' << 'core.quotepath=false'
345 full_args << '-c' << 'log.decorate=no'
345 346 end
346 347 full_args += args
347 348 ret = shellout(full_args.map { |e| shell_quote e.to_s }.join(' '), &block)
General Comments 0
You need to be logged in to leave comments. Login now