Skip to content
Snippets Groups Projects
Commit c1d43ed7 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge pull request #4353 from dirker/allow-import-via-git-protocol

project: allow import via git:// url
parents 79a989fa 2d05271c
No related branches found
No related tags found
No related merge requests found
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