]> source.dussan.org Git - redmine.git/commitdiff
Prevent nil error when retrieving svn version (#3268).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 May 2009 09:49:39 +0000 (09:49 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 May 2009 09:49:39 +0000 (09:49 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2722 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/subversion_adapter.rb

index 61cce93b0fc5a3bcdbded28317d9feff4fc81afb..7f79fa3cf6cd466ed4a1d66b51dcc44678c07067 100644 (file)
@@ -37,7 +37,7 @@ module Redmine
             version = nil\r
             shellout(cmd) do |io|\r
               # Read svn version in first returned line\r
-              if m = io.gets.match(%r{((\d+\.)+\d+)})\r
+              if m = io.gets.to_s.match(%r{((\d+\.)+\d+)})\r
                 version = m[0].scan(%r{\d+}).collect(&:to_i)\r
               end\r
             end\r