git-authenticate: Prevent removal of '.guix-authorizations'.
authorLudovic Courtès <ludo@gnu.org>
Sun, 7 Jun 2020 21:06:41 +0000 (23:06 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 7 Jun 2020 21:10:46 +0000 (23:10 +0200)
commite78275608065ef073775fabb9f1a757da65851f2
tree1a732111874006d3c5d9f8f47b0752a538ed3d51
parent1fd7de45f218ce572a3fe87764ad15927e3dbdc4
git-authenticate: Prevent removal of '.guix-authorizations'.

* guix/git-authenticate.scm (commit-authorized-keys)
[parents-have-authorizations-file?, assert-parents-lack-authorizations]:
New procedures.
Use the latter before returning DEFAULT-AUTHORIZATIONS.
* guix/git.scm (false-if-git-not-found): Export.
* guix/tests/git.scm (populate-git-repository): Add 'remove' clause.
* tests/git-authenticate.scm ("signed commits, .guix-authorizations removed"):
New test.
guix/git-authenticate.scm
guix/git.scm
guix/tests/git.scm
tests/git-authenticate.scm