diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-18 10:10:29 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-18 10:10:29 +0000 |
commit | 1f58b94bd8c3c0829a676d75e00f7e206ece715a (patch) | |
tree | 51bbf0a225c8671759607cfe1af1359fffc122bd /lib | |
parent | 1fcd3d956fd0747529f77b13602bf677bc200074 (diff) | |
download | redmine-1f58b94bd8c3c0829a676d75e00f7e206ece715a.tar.gz redmine-1f58b94bd8c3c0829a676d75e00f7e206ece715a.zip |
scm: bazaar: do not call super initialize method at adapter (#11834)
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/scm/adapters/bazaar_adapter.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/bazaar_adapter.rb b/lib/redmine/scm/adapters/bazaar_adapter.rb index b2413f549..64a62dd42 100644 --- a/lib/redmine/scm/adapters/bazaar_adapter.rb +++ b/lib/redmine/scm/adapters/bazaar_adapter.rb @@ -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) |