Skip to content

push fail (pre-receive hook declined) #1685

Closed
@ncwgf

Description

@ncwgf
  • Gitea version (or commit ref): a503947 9a0b0da latest docker image
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

when git push origin :refs/heads/feature/<xxx> (deleting branch), push fail
! [remote rejected] feature/<xxx> (pre-receive hook declined)
/data/gitea/log/hooks/pre-receive.log
[...io/gitea/cmd/hook.go:126 runHookPreReceive()] [F] retrieve protected branches information failed

seem only feature branch have this problem
develop branch work fine
guess related to branch name with /

rollback to image/version v1.1.1 will work

also change default branch and set protected branch is not work, even in v1.1.1, not sure is it same reason

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions