From: Jean-Philippe Lang Date: Sat, 1 May 2010 09:55:40 +0000 (+0000) Subject: Fixes Mercurial adapter for JRuby (#4494, #5404). X-Git-Tag: 1.0.0~107 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b897089729ee8129201425c2d34037e5284f189b;p=redmine.git Fixes Mercurial adapter for JRuby (#4494, #5404). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3722 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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,