GNOME Bugzilla – Bug 782433
Disallow branches named HEAD
Last modified: 2017-05-12 07:57:30 UTC
Created attachment 351537 [details] [review] Bans HEAD branches I pushed by mistake a branch named recently with `git push origin master:HEAD` (instead of `git push origin HEAD:master`). It should not be allowed (we already ban tags with that name). Patch attached, should do the trick, though is rather hard to test.
I tested it with: ./pre-receive-check-policy 000 123 refs/heads/HEAD
Pushed, thanks. [1] [1] https://git.gnome.org/browse/sysadmin-bin/commit/?id=0216db9cab3b75fa9b24bddb14261bced6cc2c92