push: require force for annotated tags
authorChris Rorvick <chris@rorvick.com>
Fri, 30 Nov 2012 01:41:38 +0000 (19:41 -0600)
committerJunio C Hamano <gitster@pobox.com>
Sun, 2 Dec 2012 09:44:49 +0000 (01:44 -0800)
commit40eff1799983b958d6dbe09fb499ad505bcf6f8d
tree0de96f181ffa8de1990f42305a4ad4f0bbc11f02
parentdbfeddb12e5bb540ed3c852eebda3df9117bd150
push: require force for annotated tags

Do not allow fast-forwarding of references that point to a tag object.
Updating from a tag is potentially destructive since it would likely
leave the tag dangling.  Disallowing updates to a tag also makes sense
semantically and is consistent with the behavior of lightweight tags.

Signed-off-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-push.txt
remote.c
t/t5516-fetch-push.sh