= phenomenon =
We got some commits pushed to the Spacewalk git repo hosted on fedorahosted that we'd like purged.
= background analysis =
When I try to reset or remove the master branch, I get
$ git push -f origin :master remote: error: By default, deleting the current branch is denied, because the next remote: error: 'git clone' won't result in any file checked out, causing confusion. remote: error: remote: error: You can set 'receive.denyDeleteCurrent' configuration variable to remote: error: 'warn' or 'ignore' in the remote repository to allow deleting the remote: error: current branch, with or without a warning message. remote: error: remote: error: To squelch this message, you can set it to 'refuse'. remote: error: refusing to delete the current branch: refs/heads/master To ssh://git.fedorahosted.org/git/spacewalk.git/ ! [remote rejected] master (deletion of the current branch prohibited)
= implementation recommendation =
Could you please set the receive.denyDeleteCurrent config option of the Spacewalk git repository to warn?
Thank you,
Jan
I set that option, let you push and reverted it.
Please let us know if you need anything further.