From ed246cef41b14fd3e8c15e6fafcef284c9ae9dd7 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 9 Jan 2011 09:54:10 +0000 Subject: [PATCH] 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 --- lib/redmine/scm/adapters/mercurial_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5