Skip to content
Snippets Groups Projects
Commit 2d05271c authored by Dirk Hörner's avatar Dirk Hörner
Browse files

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.
parent 48d37272
No related branches found
No related tags found
1 merge request!4353project: allow import via git:// url
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment