From: Toshi MARUYAMA Date: Sat, 21 May 2011 02:17:34 +0000 (+0000) Subject: scm: filesystem: override "path_encoding" method in adapter (#2274). X-Git-Tag: 1.2.0~29 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cbd17151097e4ef525fc2a417f3b68119adcc22f;p=redmine.git scm: filesystem: override "path_encoding" method in adapter (#2274). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5864 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/scm/adapters/filesystem_adapter.rb b/lib/redmine/scm/adapters/filesystem_adapter.rb index 4b6559c61..cbd29aada 100644 --- a/lib/redmine/scm/adapters/filesystem_adapter.rb +++ b/lib/redmine/scm/adapters/filesystem_adapter.rb @@ -38,6 +38,10 @@ module Redmine @path_encoding = path_encoding.blank? ? 'UTF-8' : path_encoding end + def path_encoding + @path_encoding + end + def format_path_ends(path, leading=true, trailling=true) path = leading ? with_leading_slash(path) : without_leading_slash(path)