summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-10 08:11:18 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-10 08:11:18 +0000
commitbac26830e50f80655fd0611211e785c66bc11733 (patch)
tree2d526bdd7ea73670551231ba662c10ec47220eed /lib
parentc6ec41473e62ea16325edbc8180434dff66da974 (diff)
downloadredmine-bac26830e50f80655fd0611211e785c66bc11733.tar.gz
redmine-bac26830e50f80655fd0611211e785c66bc11733.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/scm/adapters/abstract_adapter.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb
index 039513aa9..aadf551ca 100644
--- a/lib/redmine/scm/adapters/abstract_adapter.rb
+++ b/lib/redmine/scm/adapters/abstract_adapter.rb
@@ -145,7 +145,7 @@ module Redmine
def cat(path, identifier=nil)
return nil
end
-
+
def with_leading_slash(path)
path ||= ''
(path[0,1]!="/") ? "/#{path}" : path
@@ -175,7 +175,7 @@ module Redmine
info = self.info
info ? info.root_url : nil
end
-
+
def target(path)
path ||= ''
base = path.match(/^\//) ? root_url : url
@@ -223,7 +223,7 @@ module Redmine
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.strip_credential(cmd)
end