##// END OF EJS Templates
scm: git: add "--no-decorate" option in "git log"....
Toshi MARUYAMA -
r5214:00277a2a0a1b
parent child
Show More
@@ -143,7 +143,7 module Redmine
143
143
144 def lastrev(path, rev)
144 def lastrev(path, rev)
145 return nil if path.nil?
145 return nil if path.nil?
146 cmd_args = %w|log --no-color --encoding=UTF-8 --date=iso --pretty=fuller --no-merges -n 1|
146 cmd_args = %w|log --no-decorate --no-color --encoding=UTF-8 --date=iso --pretty=fuller --no-merges -n 1|
147 cmd_args << rev if rev
147 cmd_args << rev if rev
148 cmd_args << "--" << path unless path.empty?
148 cmd_args << "--" << path unless path.empty?
149 lines = []
149 lines = []
@@ -171,7 +171,7 module Redmine
171
171
172 def revisions(path, identifier_from, identifier_to, options={})
172 def revisions(path, identifier_from, identifier_to, options={})
173 revisions = Revisions.new
173 revisions = Revisions.new
174 cmd_args = %w|log --no-color --encoding=UTF-8 --raw --date=iso --pretty=fuller|
174 cmd_args = %w|log --no-decorate --no-color --encoding=UTF-8 --raw --date=iso --pretty=fuller|
175 cmd_args << "--reverse" if options[:reverse]
175 cmd_args << "--reverse" if options[:reverse]
176 cmd_args << "--all" if options[:all]
176 cmd_args << "--all" if options[:all]
177 cmd_args << "-n" << "#{options[:limit].to_i}" if options[:limit]
177 cmd_args << "-n" << "#{options[:limit].to_i}" if options[:limit]
General Comments 0
You need to be logged in to leave comments. Login now