summaryrefslogtreecommitdiffstats
path: root/lib/redmine/scm/adapters/cvs_adapter.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-04 05:02:44 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-04 05:02:44 +0000
commit956e8af591f13b3e1d4866d0291cd7e63a3f5afc (patch)
tree5db19c585bf6933520ebd328871788597452b33c /lib/redmine/scm/adapters/cvs_adapter.rb
parentd6a483684bea9b1a381f34289524a6e74f68f67d (diff)
downloadredmine-956e8af591f13b3e1d4866d0291cd7e63a3f5afc.tar.gz
redmine-956e8af591f13b3e1d4866d0291cd7e63a3f5afc.zip
scm: cvs: fix loss non ASCII paths if path_encoding is '' (#3462).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5630 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm/adapters/cvs_adapter.rb')
-rw-r--r--lib/redmine/scm/adapters/cvs_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/cvs_adapter.rb b/lib/redmine/scm/adapters/cvs_adapter.rb
index f010260e9..0309bee78 100644
--- a/lib/redmine/scm/adapters/cvs_adapter.rb
+++ b/lib/redmine/scm/adapters/cvs_adapter.rb
@@ -67,7 +67,7 @@ module Redmine
# password -> unnecessary too
def initialize(url, root_url=nil, login=nil, password=nil,
path_encoding=nil)
- @path_encoding = path_encoding || 'UTF-8'
+ @path_encoding = path_encoding.blank? ? 'UTF-8' : path_encoding
@url = url
# TODO: better Exception here (IllegalArgumentException)
raise CommandFailed if root_url.blank?