Commit c1d43ed78f15e656bb8f3c954dc09dfe9dd328e0
Exists in
master
and in
4 other branches
Merge pull request #4353 from dirker/allow-import-via-git-protocol
project: allow import via git:// url
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 | ... | ... |