I have tried the following command and it fails.
git push origin :next
remote: error: denying ref deletion for refs/heads/next
To blah.git
! [remote rejected] next (deletion prohibited)
error: failed to push some refs to 'blah.git
I am using gitolite and cannot find any of this error message in the hooks. How can I disable this so that I can delete or rename this remote branch? When I run git branch -r -d origin/next, it appears to go away, but the next git pull brings it right back.