~ruther/guix-local

512b9e2da26968ebafdd47f701edd8fc3936d3e8 — Ludovic Courtès 6 years ago 41f443c
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.
1 files changed, 1 insertions(+), 3 deletions(-)

M guix/git-authenticate.scm
M guix/git-authenticate.scm => guix/git-authenticate.scm +1 -3
@@ 161,9 161,7 @@ may not be ASCII-armored."
(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)))