git-authenticate: Don't hard-code "origin/" for keyring reference.

* guix/git-authenticate.scm (load-keyring-from-reference): Remove
hard-coded "origin/".  Use BRANCH-ALL instead of BRANCH-REMOTE.
This commit is contained in:
Ludovic Courtès 2020-06-01 22:52:03 +02:00
parent 41f443c90a
commit 512b9e2da2
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -161,9 +161,7 @@ (define (load-keyring-from-blob repository oid keyring)
(define (load-keyring-from-reference repository reference)
"Load the '.key' files from the tree at REFERENCE in REPOSITORY and return
an OpenPGP keyring."
(let* ((reference (branch-lookup repository
(string-append "origin/" reference)
BRANCH-REMOTE))
(let* ((reference (branch-lookup repository reference BRANCH-ALL))
(target (reference-target reference))
(commit (commit-lookup repository target))
(tree (commit-tree commit)))