]> source.dussan.org Git - redmine.git/commitdiff
Subversion repository now accepts svn+ssh url.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 22 Sep 2007 21:02:41 +0000 (21:02 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 22 Sep 2007 21:02:41 +0000 (21:02 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@751 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository/subversion.rb

index cc9c975a3432ecb857e2832febc3c6568e59b80d..2f0990b2e3a1fff4ca1bf067d3a96974785dedd1 100644 (file)
@@ -20,7 +20,7 @@ require 'redmine/scm/adapters/subversion_adapter'
 class Repository::Subversion < Repository
   attr_protected :root_url
   validates_presence_of :url
-  validates_format_of :url, :with => /^(http|https|svn|file):\/\/.+/i
+  validates_format_of :url, :with => /^(http|https|svn|svn\+ssh|file):\/\/.+/i
 
   def scm_adapter
     Redmine::Scm::Adapters::SubversionAdapter