diff options
author | Dirk Hörner <dirker@gmail.com> | 2013-06-20 10:23:40 +0200 |
---|---|---|
committer | Dirk Hörner <dirker@gmail.com> | 2013-06-20 10:28:32 +0200 |
commit | 2d05271c6745be21edee1314ef754fe1472d4095 (patch) | |
tree | ce7cc8b5e8237800edf346c1a01b7970ec0df0e2 | |
parent | 48d372725a9f40efaa239531e93866bba04f796d (diff) | |
download | gitlab-ce-2d05271c6745be21edee1314ef754fe1472d4095.tar.gz |
project: allow import via git:// url
Besides specifying http and https url's as the import-url when creating
a new project, you can now use git://... url's to import via the git
protocol.
-rw-r--r-- | app/models/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 234d5e98b4f..e3f88b2cf98 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -90,7 +90,7 @@ class Project < ActiveRecord::Base validates_uniqueness_of :path, scope: :namespace_id validates :import_url, - format: { with: URI::regexp(%w(http https)), message: "should be a valid url" }, + format: { with: URI::regexp(%w(git http https)), message: "should be a valid url" }, if: :import? validate :check_limit |