diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-05 22:00:02 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-05 22:00:02 +0000 |
commit | 3e4b4ffd9abc098fd1fb76cd3b65c93c74afbed3 (patch) | |
tree | 5221d0fb5bb8a700e3896a94800897472cc2fa39 | |
parent | 0878be4e0cb34023f449fc38b3026ae2d9d5d155 (diff) | |
download | redmine-3e4b4ffd9abc098fd1fb76cd3b65c93c74afbed3.tar.gz redmine-3e4b4ffd9abc098fd1fb76cd3b65c93c74afbed3.zip |
Redmine::Scm::Base.all should return an empty array instead of nil when no SCM was added.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10945 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | lib/redmine/scm/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/scm/base.rb b/lib/redmine/scm/base.rb index 43e8a1877..b33a9cfd1 100644 --- a/lib/redmine/scm/base.rb +++ b/lib/redmine/scm/base.rb @@ -4,7 +4,7 @@ module Redmine class << self def all - @scms + @scms || [] end # Add a new SCM adapter and repository |