scm: git: use --encoding=UTF-8 in "git log" (#3396).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4964 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2011-02-28 14:12:47 +00:00
parent 06c9eea67a
commit eb1271bb44
5 changed files with 12 additions and 8 deletions
+2 -2
View File
@@ -129,7 +129,7 @@ module Redmine
def lastrev(path, rev)
return nil if path.nil?
cmd_args = %w|log --no-color --date=iso --pretty=fuller --no-merges -n 1|
cmd_args = %w|log --no-color --encoding=UTF-8 --date=iso --pretty=fuller --no-merges -n 1|
cmd_args << rev if rev
cmd_args << "--" << path unless path.empty?
lines = []
@@ -157,7 +157,7 @@ module Redmine
def revisions(path, identifier_from, identifier_to, options={})
revisions = Revisions.new
cmd_args = %w|log --no-color --raw --date=iso --pretty=fuller|
cmd_args = %w|log --no-color --encoding=UTF-8 --raw --date=iso --pretty=fuller|
cmd_args << "--reverse" if options[:reverse]
cmd_args << "--all" if options[:all]
cmd_args << "-n" << "#{options[:limit].to_i}" if options[:limit]