Closed
Description
Description
If you create a brand new repo in it with no files and you go into the repo settings after creating it, there is no tab for branch protection.
If you create a file (say README.md
), then the Branch Protection setting is findable.
This is also a problem when creating a new repo from a template repo that has Branch Protection in it. If you copy over the Branch Protection settings from the template, they will still exist in your new repo, but you won't be able see/modify them in the new repo initially.
Screenshots
Gitea Version
1.22.2
Can you reproduce the bug on the Gitea demo site?
Yes
Operating System
Mac OS
Browser Version
Chrome 128.0.6613.138