mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 07:21:12 +00:00
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
This commit is contained in:
parent
1fcd3d956f
commit
1f58b94bd8
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user