mirror of
https://github.com/git/git.git
synced 2024-11-19 01:34:04 +01:00
ad7638b2ed
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> |
||
---|---|---|
.. | ||
.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 | ||
info--exclude | ||
Makefile | ||
this--description |