Commit 2d05271c6745be21edee1314ef754fe1472d4095
1 parent
48d37272
Exists in
master
and in
4 other branches
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.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/project.rb
... | ... | @@ -90,7 +90,7 @@ class Project < ActiveRecord::Base |
90 | 90 | validates_uniqueness_of :path, scope: :namespace_id |
91 | 91 | |
92 | 92 | validates :import_url, |
93 | - format: { with: URI::regexp(%w(http https)), message: "should be a valid url" }, | |
93 | + format: { with: URI::regexp(%w(git http https)), message: "should be a valid url" }, | |
94 | 94 | if: :import? |
95 | 95 | |
96 | 96 | validate :check_limit | ... | ... |