From: Jean-Philippe Lang Date: Tue, 11 Mar 2008 20:15:05 +0000 (+0000) Subject: Quotes Mercurial entries command depending on the OS. X-Git-Tag: 0.7.0-RC1~71 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a9c972fbb3c7379fc251b8779d7dc1acd6e48f8f;p=redmine.git Quotes Mercurial entries command depending on the OS. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1229 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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{[\/\\]})