summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-25 09:21:45 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-25 09:21:45 -0800
commita52529f9b6258b2ae2793930096c3fcbe40078f3 (patch)
treefc28baed1a41a50892215c94ccee3f2eddf9772c /app/models/project.rb
parent7475f4f00d999a603eb01a0b70a966db1cd243d8 (diff)
parent56f51bed6b166f12b8b0f4f1bd883142c5e079a6 (diff)
downloadgitlab-ce-a52529f9b6258b2ae2793930096c3fcbe40078f3.tar.gz
Merge branch 'bitbucket-import'
Conflicts: app/views/import/gitorious/status.html.haml db/schema.rb
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 967e4de22a9..1606a83158d 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -136,7 +136,7 @@ class Project < ActiveRecord::Base
validates_uniqueness_of :name, scope: :namespace_id
validates_uniqueness_of :path, scope: :namespace_id
validates :import_url,
- format: { with: URI::regexp(%w(git http https)), message: 'should be a valid url' },
+ format: { with: URI::regexp(%w(ssh git http https)), message: 'should be a valid url' },
if: :import?
validates :star_count, numericality: { greater_than_or_equal_to: 0 }
validate :check_limit, on: :create