Commit b8970897 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixes Mercurial adapter for JRuby (#4494, #5404).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3722 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 4a4bc932
...@@ -65,7 +65,7 @@ module Redmine ...@@ -65,7 +65,7 @@ module Redmine
cmd = "#{HG_BIN} -R #{target('')} root" cmd = "#{HG_BIN} -R #{target('')} root"
root_url = nil root_url = nil
shellout(cmd) do |io| shellout(cmd) do |io|
root_url = io.gets root_url = io.read
end end
return nil if $? && $?.exitstatus != 0 return nil if $? && $?.exitstatus != 0
info = Info.new({:root_url => root_url.chomp, info = Info.new({:root_url => root_url.chomp,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment