Skip to content

Force push seems doesn't work on protected branch with white list enabled #4914

Closed
@gigi206

Description

@gigi206
  • Gitea version (or commit ref): 1.5.1
  • Git version:
  • Operating system: SLES12 SP3
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
  • Log gist:

Description

I activated protected branch with white list access :
protected branch

When I force push, I have the following message :

remote: Gitea: branch master is protected from force push        
To https://try.gitea.io/gigix/test.git
 ! [remote rejected] 4e308e02f18c0a51c687b32ff9699949e16204c4 -> master (pre-receive hook declined)
error: impossible de pousser des références vers 'https://try.gitea.io/gigix/test.git'

error

Is there an issue with withite list on protected branch ?

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