From 2d05271c6745be21edee1314ef754fe1472d4095 Mon Sep 17 00:00:00 2001 From: Dirk Hörner Date: Thu, 20 Jun 2013 10:23:40 +0200 Subject: [PATCH] project: allow import via git:// url --- 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 234d5e9..e3f88b2 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 -- libgit2 0.21.2