summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-01-09 09:54:10 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-01-09 09:54:10 +0000
commited246cef41b14fd3e8c15e6fafcef284c9ae9dd7 (patch)
tree57bc552b296d1c41f31661aa6f35856618c648b8 /lib
parente4f72a8e3afb6027954e594f4866a222630a6860 (diff)
downloadredmine-ed246cef41b14fd3e8c15e6fafcef284c9ae9dd7.tar.gz
redmine-ed246cef41b14fd3e8c15e6fafcef284c9ae9dd7.zip
scm: mercurial: wrap identifier with shell_quote at hgrev(identifier).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4666 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/scm/adapters/mercurial_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb
index a493a94ee..9657e7ad4 100644
--- a/lib/redmine/scm/adapters/mercurial_adapter.rb
+++ b/lib/redmine/scm/adapters/mercurial_adapter.rb
@@ -212,7 +212,7 @@ module Redmine
# Returns correct revision identifier
def hgrev(identifier)
- identifier.blank? ? 'tip' : identifier.to_s
+ shell_quote(identifier.blank? ? 'tip' : identifier.to_s)
end
private :hgrev
end