receive-pack: explain what to do when push updates the current branch
authorJunio C Hamano <gitster@pobox.com>
Sun, 1 Feb 2009 01:34:05 +0000 (17:34 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Feb 2009 08:39:18 +0000 (00:39 -0800)
commit3d95d92b9a75825b2d9c9bd770d85471b18597f8
treeaf2776b75baaaca60b00601e98e9165726375474
parenta34a9dbbced36999496c52b43460825732d487ba
receive-pack: explain what to do when push updates the current branch

This makes "git push" issue a more detailed instruction when a user pushes
into the current branch of a non-bare repository without having an
explicit configuration set to receive.denycurrentbranch.  In such a case,
it will also tell the user that the default will change to refusal in a
future version of git.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-receive-pack.c
t/t5516-fetch-push.sh