Permit to create/update/delete protected branches without repository
What does this MR do and why?
Contributes to #333286 (closed)
The verification for empty repository was introduced 10 years ago (see commit: 37224dc9).
I think this restriction is not necessary and users can protect their branches before the repository was created.
How to set up and validate locally
- Create an empty project
- Add a protected branch and save
- Validate that the protection branch appears
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.