diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-08-25 12:27:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-08-25 12:27:15 +0000 |
commit | 0d556525520e1781729f34fa46638db43e9831ff (patch) | |
tree | 593d530403b893d3bcd3f7499ef8c96120d45283 | |
parent | 6fc62d393cc49986408aa4ef22ddb5f8eb7b34e2 (diff) | |
download | redmine-0d556525520e1781729f34fa46638db43e9831ff.tar.gz redmine-0d556525520e1781729f34fa46638db43e9831ff.zip |
Fixes method name in AbstractAdapter.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1756 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | lib/redmine/scm/adapters/abstract_adapter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb index 553b69963..c096a6e43 100644 --- a/lib/redmine/scm/adapters/abstract_adapter.rb +++ b/lib/redmine/scm/adapters/abstract_adapter.rb @@ -185,13 +185,13 @@ module Redmine end # Hides username/password in a given command - def self.hide_credential(cmd) + def self.strip_credential(cmd) q = (Redmine::Platform.mswin? ? '"' : "'") cmd.to_s.gsub(/(\-\-(password|username))\s+(#{q}[^#{q}]+#{q}|[^#{q}]\S+)/, '\\1 xxxx') end def strip_credential(cmd) - self.class.hide_credential(cmd) + self.class.strip_credential(cmd) end end |