Browse Source

git-authenticate: 'authenticate-commits' takes a #:keyring parameter.

* guix/git-authenticate.scm (authenticate-commits): Add #:keyring
parameter.
gn-latest-20200725
Ludovic Courtès 1 year ago
parent
commit
41946b79f1
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 8
      guix/git-authenticate.scm

8
guix/git-authenticate.scm

@ -271,13 +271,13 @@ an OpenPGP keyring."
#:key
(default-authorizations '())
(keyring-reference "keyring")
(keyring (load-keyring-from-reference
repository keyring-reference))
(report-progress (const #t)))
"Authenticate COMMITS, a list of commit objects, calling REPORT-PROGRESS for
each of them. Return an alist showing the number of occurrences of each key.
The OpenPGP keyring is loaded from KEYRING-REFERENCE in REPOSITORY."
(define keyring
(load-keyring-from-reference repository keyring-reference))
If KEYRING is omitted, the OpenPGP keyring is loaded from KEYRING-REFERENCE in
REPOSITORY."
(fold (lambda (commit stats)
(report-progress)
(let ((signer (authenticate-commit repository commit keyring

Loading…
Cancel
Save