detect force push failure on deletion of protected branches #1109

Closed
opened 2025-11-02 03:48:59 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @daviian on GitHub (Sep 30, 2017).

Username for 'https://try.gitea.io': dschneiderbauer
Password for 'https://dschneiderbauer@try.gitea.io':
remote: Gitea: Internal error
remote: Fail to detect force push: exit status 128 - fatal: bad object 0000000000000000000000000000000000000000
remote:
To https://try.gitea.io/dschneiderbauer/awsiotgg.git
 ! [remote rejected] develop (pre-receive hook declined)
error: Fehler beim Versenden einiger Referenzen nach 'https://try.gitea.io/dschneiderbauer/awsiotgg.git'

Description

Trying to delete a protected branch leads to above error in console.

Originally created by @daviian on GitHub (Sep 30, 2017). - Gitea version (or commit ref): 26e49b8 - Git version: 2.7.4 - Operating system: Windows 10 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) https://try.gitea.io/dschneiderbauer/awsiotgg (trying to delete `develop` branch) - [ ] No - [ ] Not relevant - Log gist: ``` Username for 'https://try.gitea.io': dschneiderbauer Password for 'https://dschneiderbauer@try.gitea.io': remote: Gitea: Internal error remote: Fail to detect force push: exit status 128 - fatal: bad object 0000000000000000000000000000000000000000 remote: To https://try.gitea.io/dschneiderbauer/awsiotgg.git ! [remote rejected] develop (pre-receive hook declined) error: Fehler beim Versenden einiger Referenzen nach 'https://try.gitea.io/dschneiderbauer/awsiotgg.git' ``` ## Description Trying to delete a protected branch leads to above error in console.
GiteaMirror added the type/bug label 2025-11-02 03:48:59 -06:00
Author
Owner

@lunny commented on GitHub (Dec 11, 2017):

It seems this is solved?

@lunny commented on GitHub (Dec 11, 2017): It seems this is solved?
Author
Owner

@daviian commented on GitHub (May 4, 2018):

@lunny No, I still receive the same error on try.gitea.io

@daviian commented on GitHub (May 4, 2018): @lunny No, I still receive the same error on try.gitea.io
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1109