author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Wed, 20 Sep 2006 23:07:54 +0000 (01:07 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 20 Sep 2006 23:15:45 +0000 (16:15 -0700) | ||
commit | 11031d7e9f34f6a20ff4a4bd4fa3e5e3c0024a57 | |
tree | 681e2b85be05abc18b3fdd117b9aa18af4245c01 | tree | snapshot |
parent | 7dd45e15c259e44b1c8b5ffdfc0c3d002c7f642c | commit | diff |
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>
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 | diff | blob | history | |
cache.h | diff | blob | history | |
environment.c | diff | blob | history | |
receive-pack.c | diff | blob | history | |
setup.c | diff | blob | history |