Skip to content

Commit 112a34c

Browse files
author
root
committed
Fix #230
1 parent 51774e3 commit 112a34c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: lib/redmine_git_hosting/patches/project_patch.rb

+4
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ def additional_ident_constraints
3535
if new_record? && !identifier.blank? && Repository.find_by_identifier_and_type(identifier, "Repository::Git")
3636
errors.add(:identifier, :ident_not_unique)
3737
end
38+
39+
if new_record? && !identifier.blank? && identifier == 'gitolite-admin'
40+
errors.add(:identifier, :ident_invalid)
41+
end
3842
end
3943

4044
end

0 commit comments

Comments
 (0)