Skip to content

Branch protection not working on Gitea 1.2.1 #2748

Closed
@lklock

Description

@lklock

Hello,

We face an issue with the branch protection which doesn't allow to protect any branch

  • Gitea version (or commit ref): 1.2.1
  • Git version: 2.14.2
  • Operating system: Ubuntu 16.04.3 LTS
  • Database (use [x]):
    • PostgreSQL
    • [x ] MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • [x ] No
    • Not relevant
  • Log gist:

Description

Most of the branches of I select are not being protected after selecting them
It works for some of them but I could not figure out any pattern (based on branch name per instance)

Example on one of our projects:

default branch set to dev-master
I can protect branch "master" but not branch"XTI-730" or "R_9_3_patches"

Are there any conditions for a branch to be able to be protected ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions