1
0
mirror of https://github.com/git/git.git synced 2024-11-19 01:34:04 +01:00
git/templates
Gerrit Pape ad7638b2ed hooks--update: decline deleting tags or branches by default, add config options
Decline deleting tags or branches through git push <remote> :<ref> by
default, support config options hooks.allowdeletetag, hooks.allowdeletebranch
to override this per repository.

Before this patch the update hook interpreted deleting a tag, no matter if
annotated or not, through git push <remote> :<tag> as unannotated tag, and
declined it by default, but with an unappropriate error message:

 $ git push origin :atag
 deleting 'refs/tags/atag'
 *** The un-annotated tag, atag, is not allowed in this repository
 *** Use 'git tag [ -a | -s ]' for tags you want to propagate.
 ng refs/tags/atag hook declined
 error: hooks/update exited with error code 1
 error: hook declined to update refs/tags/atag
 error: failed to push to 'monolith:/git/qm/test-repo'

Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2007-11-08 14:17:32 -08:00
..
.gitignore
branches--
hooks--applypatch-msg
hooks--commit-msg
hooks--post-commit
hooks--post-receive
hooks--post-update
hooks--pre-applypatch
hooks--pre-commit
hooks--pre-rebase
hooks--update hooks--update: decline deleting tags or branches by default, add config options 2007-11-08 14:17:32 -08:00
info--exclude
Makefile
this--description