[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/04: git-authenticate: Don't hard-code "origin/" for keyring reference
From: |
guix-commits |
Subject: |
02/04: git-authenticate: Don't hard-code "origin/" for keyring reference. |
Date: |
Fri, 5 Jun 2020 17:10:48 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 512b9e2da26968ebafdd47f701edd8fc3936d3e8
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Jun 1 22:52:03 2020 +0200
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.
---
guix/git-authenticate.scm | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/guix/git-authenticate.scm b/guix/git-authenticate.scm
index 4df56fa..4217ab6 100644
--- a/guix/git-authenticate.scm
+++ b/guix/git-authenticate.scm
@@ -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)))