diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-04 05:00:57 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-04 05:00:57 +0000 |
commit | ee7fe09b1ea324dc119d7325bac4ef7fc9f8fc07 (patch) | |
tree | 391a15c1f46e355e87d3a946302b9166acb626fa /lib/redmine/scm/adapters/mercurial_adapter.rb | |
parent | ff77ecee86b79de1d61c22a3b7050ec5786d32f2 (diff) | |
download | redmine-ee7fe09b1ea324dc119d7325bac4ef7fc9f8fc07.tar.gz redmine-ee7fe09b1ea324dc119d7325bac4ef7fc9f8fc07.zip |
scm: mercurial: fix loss non ASCII paths if path_encoding is '' (#2664).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5627 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm/adapters/mercurial_adapter.rb')
-rw-r--r-- | lib/redmine/scm/adapters/mercurial_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb index 0b9b282b3..33c32c68d 100644 --- a/lib/redmine/scm/adapters/mercurial_adapter.rb +++ b/lib/redmine/scm/adapters/mercurial_adapter.rb @@ -83,7 +83,7 @@ module Redmine def initialize(url, root_url=nil, login=nil, password=nil, path_encoding=nil) super - @path_encoding = path_encoding || 'UTF-8' + @path_encoding = path_encoding.blank? ? 'UTF-8' : path_encoding end def info |