Skip to content

Branch Protection Not Available In Blank Repo Settings #32093

Closed
@friedrichsenm

Description

@friedrichsenm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UItype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions