1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-05 16:52:59 +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 War on whitespace 2007-06-07 00:04:01 -07:00
hooks--post-commit
hooks--post-receive War on whitespace 2007-06-07 00:04:01 -07:00
hooks--post-update
hooks--pre-applypatch War on whitespace 2007-06-07 00:04:01 -07:00
hooks--pre-commit hooks-pre-commit: use \t, rather than a literal TAB in regexp 2007-10-26 23:16:51 -07:00
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 Use $(RM) in Makefiles instead of 'rm -f' 2007-07-14 23:31:01 -07:00
this--description