Branch Protection Not Available In Blank Repo Settings #13514

Closed
opened 2025-11-02 10:44:50 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @friedrichsenm on GitHub (Sep 20, 2024).

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

Brand new repo
image

Settings Page
image

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

Originally created by @friedrichsenm on GitHub (Sep 20, 2024). ### 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 Brand new repo <img width="1313" alt="image" src="https://github.com/user-attachments/assets/724ae702-8a44-4eb6-b79f-1c9443545de5"> Settings Page <img width="1313" alt="image" src="https://github.com/user-attachments/assets/d40d63fb-fb8d-47a6-8a93-6ebdf0120e3c"> ### 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
GiteaMirror added the type/bugtopic/ui labels 2025-11-02 10:44:50 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13514