From 1158716f46a8a1559ebc5d9ec0f8310c10defc5f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 20 Nov 2010 14:11:56 +0000 Subject: [PATCH] Fixed: Broken pipe error when browsing subversion repository (#6860). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4419 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/subversion_adapter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/redmine/scm/adapters/subversion_adapter.rb b/lib/redmine/scm/adapters/subversion_adapter.rb index a4520a62e..f887df632 100644 --- a/lib/redmine/scm/adapters/subversion_adapter.rb +++ b/lib/redmine/scm/adapters/subversion_adapter.rb @@ -36,8 +36,8 @@ module Redmine version = nil shellout(cmd) do |io| # Read svn version in first returned line - if m = io.gets.to_s.match(%r{((\d+\.)+\d+)}) - version = m[0].scan(%r{\d+}).collect(&:to_i) + if m = io.read.to_s.match(%r{\A(.*?)((\d+\.)+\d+)}) + version = m[2].scan(%r{\d+}).collect(&:to_i) end end return nil if $? && $?.exitstatus != 0 -- 2.39.5