README: Document pre-push hook with 'guix git authenticate'.

* README: Document pre-push hook.
This commit is contained in:
Ludovic Courtès 2021-05-06 12:39:51 +02:00
parent 8a7e10b447
commit fd879eeebc
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 11 additions and 0 deletions

11
README
View File

@ -1,2 +1,13 @@
This repository is meant to contain documents and tools by Guix hackers
and maintainers that do not fit in the Guix repository.
If youre a committer, please install this pre-push hook:
cat > .git/hooks/pre-push <<EOF
#!/bin/sh
exec guix git authenticate 8a7e10b447b574279a7016ae6ea15bc7bcd46253 "3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5"
EOF
chmod +x .git/hooks/pre-push
This will check whether your commits are signed by a key listed in
.guix-authorizations before pushing.