summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-05-10 09:49:39 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-05-10 09:49:39 +0000
commita7ea14f5af751da346f411d4df765629e56e260c (patch)
tree22b9c95047df947ff20830d6ad111eb47fe2ac4b /lib
parent7319e8e235ca2ad3d9b170072dcf286a1c79dcd7 (diff)
downloadredmine-a7ea14f5af751da346f411d4df765629e56e260c.tar.gz
redmine-a7ea14f5af751da346f411d4df765629e56e260c.zip
Prevent nil error when retrieving svn version (#3268).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2722 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/scm/adapters/subversion_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/subversion_adapter.rb b/lib/redmine/scm/adapters/subversion_adapter.rb
index 61cce93b0..7f79fa3cf 100644
--- a/lib/redmine/scm/adapters/subversion_adapter.rb
+++ b/lib/redmine/scm/adapters/subversion_adapter.rb
@@ -37,7 +37,7 @@ module Redmine
version = nil
shellout(cmd) do |io|
# Read svn version in first returned line
- if m = io.gets.match(%r{((\d+\.)+\d+)})
+ if m = io.gets.to_s.match(%r{((\d+\.)+\d+)})
version = m[0].scan(%r{\d+}).collect(&:to_i)
end
end