We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51774e3 commit 112a34cCopy full SHA for 112a34c
lib/redmine_git_hosting/patches/project_patch.rb
@@ -35,6 +35,10 @@ def additional_ident_constraints
35
if new_record? && !identifier.blank? && Repository.find_by_identifier_and_type(identifier, "Repository::Git")
36
errors.add(:identifier, :ident_not_unique)
37
end
38
+
39
+ if new_record? && !identifier.blank? && identifier == 'gitolite-admin'
40
+ errors.add(:identifier, :ident_invalid)
41
+ end
42
43
44
0 commit comments