Skip to content

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

  1. Create an empty project
  2. Add a protected branch and save
  3. 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.

Merge request reports

Loading