me
/
guix
Archived
1
0
Fork 0

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.
master
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
1 changed files with 1 additions and 3 deletions

View File

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