From b897089729ee8129201425c2d34037e5284f189b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 1 May 2010 09:55:40 +0000 Subject: [PATCH] Fixes Mercurial adapter for JRuby (#4494, #5404). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3722 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/mercurial_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb index 79e2d13e2..9d5e9aa11 100644 --- a/lib/redmine/scm/adapters/mercurial_adapter.rb +++ b/lib/redmine/scm/adapters/mercurial_adapter.rb @@ -65,7 +65,7 @@ module Redmine cmd = "#{HG_BIN} -R #{target('')} root" root_url = nil shellout(cmd) do |io| - root_url = io.gets + root_url = io.read end return nil if $? && $?.exitstatus != 0 info = Info.new({:root_url => root_url.chomp, -- 2.39.5