mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-13 22:59:19 +10:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user