]> source.dussan.org Git - redmine.git/commitdiff
scm: mercurial: override initialize() for path encoding (#2664).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 22 Feb 2011 08:05:29 +0000 (08:05 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 22 Feb 2011 08:05:29 +0000 (08:05 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4919 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/mercurial_adapter.rb

index 9d29caefacdeeef5e68d0ade29d434ffc72b7aa0..5bcb33ea54b829385feb1e2a325a1860c76f9074 100644 (file)
@@ -78,6 +78,11 @@ module Redmine
           end
         end
 
+        def initialize(url, root_url=nil, login=nil, password=nil)
+          super
+          @path_encoding = 'UTF-8'
+        end
+
         def info
           tip = summary['repository']['tip']
           Info.new(:root_url => CGI.unescape(summary['repository']['root']),