receive-pack: receive.denyDeleteCurrent
authorJunio C Hamano <gitster@pobox.com>
Mon, 9 Feb 2009 06:31:21 +0000 (22:31 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Feb 2009 06:26:49 +0000 (22:26 -0800)
This is a companion patch to the recent 3d95d92 (receive-pack: explain
what to do when push updates the current branch, 2009-01-31).

Deleting the current branch from a remote will result in the next clone
from it not check out anything, among other things. It also is one of the
cause that makes remotes/origin/HEAD a dangling symbolic ref. This patch
still allows the traditional behaviour but with a big warning, and promises
that the default will change to 'refuse' in a future release.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found