summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-11 20:15:05 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-11 20:15:05 +0000
commita9c972fbb3c7379fc251b8779d7dc1acd6e48f8f (patch)
tree0ac11bc116adb81d9d671c7f102c1e01d31a1b3c
parent71d3bb2f7b9788264c1b110a4eee3be46c2d5f49 (diff)
downloadredmine-a9c972fbb3c7379fc251b8779d7dc1acd6e48f8f.tar.gz
redmine-a9c972fbb3c7379fc251b8779d7dc1acd6e48f8f.zip
Quotes Mercurial entries command depending on the OS.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1229 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--lib/redmine/scm/adapters/mercurial_adapter.rb2
1 files changed, 1 insertions, 1 deletions
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{[\/\\]})