Refuse updating the current branch in a non-bare repository via push
authorJunio C Hamano <gitster@pobox.com>
Wed, 11 Feb 2009 10:28:03 +0000 (02:28 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 Jul 2009 17:15:00 +0000 (10:15 -0700)
commitacd2a45b83e50c0f33b01ee74df241f1adfdff39
tree2dd1dd6c6c0630ebb43b88e1cbd8256ebbd83659
parent6641575963388b61f408f177d91cdacad25d2e26
Refuse updating the current branch in a non-bare repository via push

This makes git-push refuse pushing into a non-bare repository to update
the current branch by default.  To help people who are used to be able to
do this (and later "reset --hard" it in some other way), an error message
is issued when this refusal is triggered, instructing how to resurrect the
old behaviour.

Hosting sites that do not give the users direct access to customize their
repositories (e.g. repo.or.cz, gitorious, github etc.) may further want to
explicitly set the configuration variable to "refuse" for their customers'
repositories.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-receive-pack.c
t/t5400-send-pack.sh
t/t5401-update-hooks.sh
t/t5405-send-pack-rewind.sh
t/t5516-fetch-push.sh
t/t5517-push-mirror.sh
t/t5522-pull-symlink.sh
t/t5701-clone-local.sh