scm: code clean up lib/redmine/scm/adapters/abstract_adapter.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5381 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c6ec41473e
commit
bac26830e5
|
@ -145,7 +145,7 @@ module Redmine
|
||||||
def cat(path, identifier=nil)
|
def cat(path, identifier=nil)
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def with_leading_slash(path)
|
def with_leading_slash(path)
|
||||||
path ||= ''
|
path ||= ''
|
||||||
(path[0,1]!="/") ? "/#{path}" : path
|
(path[0,1]!="/") ? "/#{path}" : path
|
||||||
|
@ -175,7 +175,7 @@ module Redmine
|
||||||
info = self.info
|
info = self.info
|
||||||
info ? info.root_url : nil
|
info ? info.root_url : nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def target(path)
|
def target(path)
|
||||||
path ||= ''
|
path ||= ''
|
||||||
base = path.match(/^\//) ? root_url : url
|
base = path.match(/^\//) ? root_url : url
|
||||||
|
@ -223,7 +223,7 @@ module Redmine
|
||||||
q = (Redmine::Platform.mswin? ? '"' : "'")
|
q = (Redmine::Platform.mswin? ? '"' : "'")
|
||||||
cmd.to_s.gsub(/(\-\-(password|username))\s+(#{q}[^#{q}]+#{q}|[^#{q}]\S+)/, '\\1 xxxx')
|
cmd.to_s.gsub(/(\-\-(password|username))\s+(#{q}[^#{q}]+#{q}|[^#{q}]\S+)/, '\\1 xxxx')
|
||||||
end
|
end
|
||||||
|
|
||||||
def strip_credential(cmd)
|
def strip_credential(cmd)
|
||||||
self.class.strip_credential(cmd)
|
self.class.strip_credential(cmd)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue