summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-20 14:11:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-20 14:11:56 +0000
commit1158716f46a8a1559ebc5d9ec0f8310c10defc5f (patch)
treebadc2c524ea108d418d3f5e363c801df51be0f30
parent6b72c6689305c13a728a311257b58b8465ee4353 (diff)
downloadredmine-1158716f46a8a1559ebc5d9ec0f8310c10defc5f.tar.gz
redmine-1158716f46a8a1559ebc5d9ec0f8310c10defc5f.zip
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
-rw-r--r--lib/redmine/scm/adapters/subversion_adapter.rb4
1 files 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