]> source.dussan.org Git - redmine.git/commitdiff
Fixes Mercurial adapter for JRuby (#4494, #5404).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 1 May 2010 09:55:40 +0000 (09:55 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 1 May 2010 09:55:40 +0000 (09:55 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3722 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/mercurial_adapter.rb

index 79e2d13e2d1f01cbc6be1f4a0f355b8be4ab6475..9d5e9aa1164bb31dc471b2f5778509792ba5acd3 100644 (file)
@@ -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,