git-update: Deny non-fast-forwards
commita0f3060f234418993aaeee0962cfdbd25f37b940
authorLukas Fleischer <lfleischer@archlinux.org>
Thu, 11 Jun 2015 15:48:48 +0000 (11 17:48 +0200)
committerLukas Fleischer <lfleischer@archlinux.org>
Thu, 11 Jun 2015 15:56:26 +0000 (11 17:56 +0200)
tree9ec240c441cb1b108be5966282480d87179f832d
parente254a3154463b5705367c925c4edb5a094506e45
git-update: Deny non-fast-forwards

To make sure we never lose any history, non-fast-forwards are forbidden.
Instead of relying on receive.denyNonFastForwards, add a simple check to
the update hook. This has the added benefit of more flexibility.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
INSTALL
git-interface/git-update.py