]> source.dussan.org Git - redmine.git/commitdiff
scm: bazaar: do not call super initialize method at adapter (#11834)
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 18 Sep 2012 10:10:29 +0000 (10:10 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 18 Sep 2012 10:10:29 +0000 (10:10 +0000)
On Bazaar 2.0.5, in case of using non ASCII *repository* path,
following trace raise on all operation.

<pre>
Traceback (most recent call last):
  File "/usr/bin/bzr", line 142, in <module>
    exit_val = bzrlib.commands.main()
  File "/usr/lib/python2.6/site-packages/bzrlib/commands.py", line 1102, in main
    argv = osutils.get_unicode_argv()
  File "/usr/lib/python2.6/site-packages/bzrlib/osutils.py", line 90, in get_unicode_argv
    "encoding." % a))
bzrlib.errors.BzrError:
 Parameter ''/somewhere/\xe3\x83\x90\xe3\x82\xb6\xe3\x83\xbc/non_ascii/''
 is unsupported by the current encoding.
</pre>

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10422 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/bazaar_adapter.rb

index b2413f54950e10cea53d52b0c2412adc0aa42de4..64a62dd42b23338c634e97fc7ce594bcc5e7d0f6 100644 (file)
@@ -58,8 +58,10 @@ module Redmine
         end
 
         def initialize(url, root_url=nil, login=nil, password=nil, path_encoding=nil)
+          @url = url
+          @root_url = url
           @path_encoding = 'UTF-8'
-          super
+          # do not call *super* for non ASCII repository path
         end
 
         def bzr_path_encodig=(encoding)