##// END OF EJS Templates
Merged r4419 from trunk....
Jean-Philippe Lang -
r4306:b5a409791c04
parent child
Show More
@@ -36,8 +36,8 module Redmine
36 version = nil
36 version = nil
37 shellout(cmd) do |io|
37 shellout(cmd) do |io|
38 # Read svn version in first returned line
38 # Read svn version in first returned line
39 if m = io.gets.to_s.match(%r{((\d+\.)+\d+)})
39 if m = io.read.to_s.match(%r{\A(.*?)((\d+\.)+\d+)})
40 version = m[0].scan(%r{\d+}).collect(&:to_i)
40 version = m[2].scan(%r{\d+}).collect(&:to_i)
41 end
41 end
42 end
42 end
43 return nil if $? && $?.exitstatus != 0
43 return nil if $? && $?.exitstatus != 0
General Comments 0
You need to be logged in to leave comments. Login now