summaryrefslogtreecommitdiffstats
path: root/app/models/repository.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r--app/models/repository.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index e65c800e6..4e76c3453 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -463,6 +463,10 @@ class Repository < ActiveRecord::Base
scope
end
+ def valid_name?(name)
+ scm.valid_name?(name)
+ end
+
protected
# Validates repository url based against an optional regular expression