1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-01 03:57:15 +00: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:
Toshi MARUYAMA 2019-10-19 11:15:30 +00:00
parent 77add1315b
commit 0ea9e05b68

View File

@ -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)