summaryrefslogtreecommitdiff
path: root/contrib/hooks/post-receive-email
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2007-11-08 09:47:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-11-08 22:17:32 (GMT)
commitad7638b2edbad05d5f5581ec76d49094d8ba9237 (patch)
treecf8076b250cf9fb6357691b2e34116f0b54e92bf /contrib/hooks/post-receive-email
parent1756fed9ee849c687f92cac30d86d2955d8c94c4 (diff)
downloadgit-ad7638b2edbad05d5f5581ec76d49094d8ba9237.zip
git-ad7638b2edbad05d5f5581ec76d49094d8ba9237.tar.gz
git-ad7638b2edbad05d5f5581ec76d49094d8ba9237.tar.bz2
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>
Diffstat (limited to 'contrib/hooks/post-receive-email')
0 files changed, 0 insertions, 0 deletions