]> source.dussan.org Git - redmine.git/commitdiff
scm: mercurial: wrap identifier with shell_quote at hgrev(identifier).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 9 Jan 2011 09:54:10 +0000 (09:54 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 9 Jan 2011 09:54:10 +0000 (09:54 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4666 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/mercurial_adapter.rb

index a493a94eeb7ed93a930497914c3b8a910f87e4c1..9657e7ad44e442b1032bfd39aafdfb563aa08f39 100644 (file)
@@ -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