From 2d05271c6745be21edee1314ef754fe1472d4095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20H=C3=B6rner?= Date: Thu, 20 Jun 2013 10:23:40 +0200 Subject: 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. --- app/models/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/project.rb b/app/models/project.rb index 234d5e98b4f..e3f88b2cf98 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -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 -- cgit v1.2.1