From a9c972fbb3c7379fc251b8779d7dc1acd6e48f8f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 11 Mar 2008 20:15:05 +0000 Subject: [PATCH] Quotes Mercurial entries command depending on the OS. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1229 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 40d570d05..26bf01140 100644 --- a/lib/redmine/scm/adapters/mercurial_adapter.rb +++ b/lib/redmine/scm/adapters/mercurial_adapter.rb @@ -45,7 +45,7 @@ module Redmine entries = Entries.new cmd = "#{HG_BIN} -R #{target('')} --cwd #{target(path)} locate" cmd << " -r #{identifier.to_i}" if identifier - cmd << " glob:**" + cmd << " " + shell_quote('glob:**') shellout(cmd) do |io| io.each_line do |line| e = line.chomp.split(%r{[\/\\]}) -- 2.39.5