add receive.denyNonFastforwards config variable
commit11031d7e9f34f6a20ff4a4bd4fa3e5e3c0024a57
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Wed, 20 Sep 2006 23:07:54 +0000 (21 01:07 +0200)
committerJunio C Hamano <junkio@cox.net>
Wed, 20 Sep 2006 23:15:45 +0000 (20 16:15 -0700)
tree681e2b85be05abc18b3fdd117b9aa18af4245c01
parent7dd45e15c259e44b1c8b5ffdfc0c3d002c7f642c
add receive.denyNonFastforwards config variable

If receive.denyNonFastforwards is set to true, git-receive-pack will deny
non fast-forwards, i.e. forced updates. Most notably, a push to a repository
which has that flag set will fail.

As a first user, 'git-init-db --shared' sets this flag, since in a shared
setup, you are most unlikely to want forced pushes to succeed.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-init-db.c
cache.h
environment.c
receive-pack.c
setup.c