#4326 Cannot delete branches with "git push -f origin :branch" in own fork
Closed: Fixed by pingou. Opened by scfc.

When I try to delete a branch in my own fork with git push, it is denied:

[tim@passepartout ~/src/fedora/rpms/x11-ssh-askpass]$ git push -f origin :remove-obsolete-requirements-for-scriptlets
remote: Branch deletion is not allowed
remote: Denied push for ref 'refs/heads/remove-obsolete-requirements-for-scriptlets' for user 'scfc'
remote: All changes have been rejected
To https://src.fedoraproject.org/forks/scfc/rpms/x11-ssh-askpass.git
 ! [remote rejected] remove-obsolete-requirements-for-scriptlets (pre-receive hook declined)
error: failed to push some refs to 'https://src.fedoraproject.org/forks/scfc/rpms/x11-ssh-askpass.git'
[tim@passepartout ~/src/fedora/rpms/x11-ssh-askpass]$

But when I browse https://src.fedoraproject.org/fork/scfc/rpms/x11-ssh-askpass/branches, I can delete the branch via the web interface.


This isn't a pagure issue directly, so the fix isn't in this project but I believe it's this PR: https://pagure.io/pagure-dist-git/pull-request/69

Thanks for your report :)

And it was just merged :)

Metadata Update from @pingou:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

Even better :-).

Metadata