[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#41767] [PATCH 2/9] git-authenticate: 'authenticate-commits' takes a

From: Ludovic Courtès
Subject: [bug#41767] [PATCH 2/9] git-authenticate: 'authenticate-commits' takes a #:keyring parameter.
Date: Tue, 9 Jun 2020 00:02:49 +0200

* guix/git-authenticate.scm (authenticate-commits): Add #:keyring
 guix/git-authenticate.scm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/guix/git-authenticate.scm b/guix/git-authenticate.scm
index 6d71228d72..4795ccf12a 100644
--- a/guix/git-authenticate.scm
+++ b/guix/git-authenticate.scm
@@ -248,13 +248,13 @@ an OpenPGP keyring."
                                (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
   (fold (lambda (commit stats)
           (let ((signer (authenticate-commit repository commit keyring

reply via email to

[Prev in Thread] Current Thread [Next in Thread]