GNOME Bugzilla – Bug 634426
Disallow tags named HEAD
Last modified: 2012-03-05 19:41:58 UTC
This is a tracking bug until myself or someone else gets around to it. http://git.gnome.org/browse/gitadmin-bin/tree/pre-receive-check-policy This needs to be updated.
Created attachment 200329 [details] [review] Allows deleting HEAD tags. Rejecting creation of tag named HEAD is implemented as I see in line 176 [1]. But it would be useful to allow deleting tags named HEAD. There are probably some projects that have such tag (e.g. file-roller). The attached patch changes a logic a bit to achieve this. It would be good to test it on some dummy git repository. I tested it by direct calling: ./pre-receive-check-policy 321 000 refs/tags/HEAD (printed nothing and returned 0) and ./pre-receive-check-policy 321 000 refs/tags/foo (printed a warning and returned 1) [1] http://git.gnome.org/browse/gitadmin-bin/tree/pre-receive-check-policy#n176
Don't really remember the background here about what blows up if there is a tag named HEAD. Complete list of modules with tags named HEAD: file-roller.git garnome.git gnome-alsamixer.git libsounds.git ORBit2.git archive/elysium-download.git archive/etherterm.git archive/gnome-devel.git archive/libelysium.git archive/ORBit.git patch looks fine though, I'll push it.
Closing since it looks like Jeff just forgot to close it earlier when he pushed a fix to gitadmin-bin
*** Bug 664279 has been marked as a duplicate of this bug. ***