mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
e254a31544
commit
a0f3060f23
2 changed files with 9 additions and 1 deletions
1
INSTALL
1
INSTALL
|
@ -29,7 +29,6 @@ Setup on Arch Linux
|
|||
# cd /srv/http/aurweb/aur.git/
|
||||
# git init --bare
|
||||
# ln -s ../../git-interface/git-update.py hooks/update
|
||||
# git config --local receive.denyNonFastForwards true
|
||||
# chown -R aur .
|
||||
|
||||
7) Install the git-auth wrapper script:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue