mirror of
https://github.com/redmine/redmine.git
synced 2026-05-06 15:06:35 +02:00
fix stderr_log_file and strip_credential of Redmine::Scm::Adapters::AbstractAdapter are not private
git-svn-id: http://svn.redmine.org/redmine/trunk@18757 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user