diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb index 83d41c22a..c4496142a 100644 --- a/lib/redmine/scm/adapters/abstract_adapter.rb +++ b/lib/redmine/scm/adapters/abstract_adapter.rb @@ -232,6 +232,7 @@ module Redmine end @stderr_log_file || nil end + private_class_method :stderr_log_file def self.shellout(cmd, options = {}, &block) if logger && logger.debug? @@ -267,6 +268,7 @@ module Redmine q = (Redmine::Platform.mswin? ? '"' : "'") cmd.to_s.gsub(/(\-\-(password|username))\s+(#{q}[^#{q}]+#{q}|[^#{q}]\S+)/, '\\1 xxxx') end + private_class_method :strip_credential def strip_credential(cmd) self.class.strip_credential(cmd)