From 0d556525520e1781729f34fa46638db43e9831ff Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 25 Aug 2008 12:27:15 +0000 Subject: [PATCH] Fixes method name in AbstractAdapter. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1756 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/abstract_adapter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb index 553b6996..c096a6e4 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