]> source.dussan.org Git - redmine.git/commitdiff
Quotes Mercurial entries command depending on the OS.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 11 Mar 2008 20:15:05 +0000 (20:15 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 11 Mar 2008 20:15:05 +0000 (20:15 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1229 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/mercurial_adapter.rb

index 40d570d05276998dc1b68df5cb7d8c7102e4e03c..26bf0114068bd8d25eadd960c1eba5adeb1c0754 100644 (file)
@@ -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{[\/\\]})