]> git.ipfire.org Git - thirdparty/git.git/commit - transport.c
push: require force for refs under refs/tags/
authorChris Rorvick <chris@rorvick.com>
Fri, 30 Nov 2012 01:41:37 +0000 (19:41 -0600)
committerJunio C Hamano <gitster@pobox.com>
Sun, 2 Dec 2012 09:44:34 +0000 (01:44 -0800)
commitdbfeddb12e5bb540ed3c852eebda3df9117bd150
tree7c5c6582390c7dabd839b72fafd074b4323b23d9
parent8c5f6f717d136c5a0e9d6d3879bf2a7bdeb42154
push: require force for refs under refs/tags/

References are allowed to update from one commit-ish to another if the
former is an ancestor of the latter.  This behavior is oriented to
branches which are expected to move with commits.  Tag references are
expected to be static in a repository, though, thus an update to
something under refs/tags/ should be rejected unless the update is
forced.

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