Quotes Mercurial entries command depending on the OS.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1229 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
71d3bb2f7b
commit
a9c972fbb3
|
@ -45,7 +45,7 @@ module Redmine
|
||||||
entries = Entries.new
|
entries = Entries.new
|
||||||
cmd = "#{HG_BIN} -R #{target('')} --cwd #{target(path)} locate"
|
cmd = "#{HG_BIN} -R #{target('')} --cwd #{target(path)} locate"
|
||||||
cmd << " -r #{identifier.to_i}" if identifier
|
cmd << " -r #{identifier.to_i}" if identifier
|
||||||
cmd << " glob:**"
|
cmd << " " + shell_quote('glob:**')
|
||||||
shellout(cmd) do |io|
|
shellout(cmd) do |io|
|
||||||
io.each_line do |line|
|
io.each_line do |line|
|
||||||
e = line.chomp.split(%r{[\/\\]})
|
e = line.chomp.split(%r{[\/\\]})
|
||||||
|
|
Loading…
Reference in New Issue