git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4906 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0e789c5272
commit
b95ef671d6
|
@ -221,6 +221,17 @@ module Redmine
|
||||||
def strip_credential(cmd)
|
def strip_credential(cmd)
|
||||||
self.class.strip_credential(cmd)
|
self.class.strip_credential(cmd)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def scm_iconv(to, from, str)
|
||||||
|
return nil if str.nil?
|
||||||
|
return str if to == from
|
||||||
|
begin
|
||||||
|
Iconv.conv(to, from, str)
|
||||||
|
rescue Iconv::Failure => err
|
||||||
|
logger.error("failed to convert from #{from} to #{to}. #{err}")
|
||||||
|
nil
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Entries < Array
|
class Entries < Array
|
||||||
|
|
Loading…
Reference in New Issue