summaryrefslogtreecommitdiff
path: root/tests/guix-git-authenticate.sh
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2024-03-13 12:55:33 +0100
committerLudovic Courtès <ludo@gnu.org>2024-05-01 17:26:18 +0200
commit7b4bf4ee888af10406da37934341a7a56186b258 (patch)
tree4de276cc2177cea3dcb767fd446235cdce7cbc8a /tests/guix-git-authenticate.sh
parent10aa88ea013ae042f53001b9b478ee97de08a299 (diff)
git authenticate: Record introduction and keyring in ‘.git/config’.
* guix/scripts/git/authenticate.scm (%default-options): Remove ‘keyring-reference’. (config-value, configured-introduction, configured-keyring-reference) (configured?, record-configuration, current-branch): New procedures. (guix-git-authenticate)[missing-arguments]: New procedure. Use ‘configured-introduction’ when zero arguments are given. Use ‘configured-keyring-reference’ when ‘-k’ is not passed. Add call to ‘record-configuration’. * doc/guix.texi (Invoking guix git authenticate): Document it. Change-Id: I66e111a83f50407b52da71662629947f83a78bbc
Diffstat (limited to 'tests/guix-git-authenticate.sh')
-rw-r--r--tests/guix-git-authenticate.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/guix-git-authenticate.sh b/tests/guix-git-authenticate.sh
index ec89f941e63..7b8951b9aaf 100644
--- a/tests/guix-git-authenticate.sh
+++ b/tests/guix-git-authenticate.sh
@@ -1,5 +1,5 @@
1# GNU Guix --- Functional package management for GNU 1# GNU Guix --- Functional package management for GNU
2# Copyright © 2020, 2022 Ludovic Courtès <ludo@gnu.org> 2# Copyright © 2020, 2022, 2024 Ludovic Courtès <ludo@gnu.org>
3# 3#
4# This file is part of GNU Guix. 4# This file is part of GNU Guix.
5# 5#
@@ -46,6 +46,13 @@ guix git authenticate "$intro_commit" "$intro_signer" \
46 --cache-key="$cache_key" --stats \ 46 --cache-key="$cache_key" --stats \
47 --end="$v1_2_0_commit" 47 --end="$v1_2_0_commit"
48 48
49# Check a commit that came soon after v1.2.0. No need to repeat $intro_commit
50# and $intro_signer because it should have been recorded in '.git/config'.
51after_v1_2_0="be4d9527b55b6829e33a6e0727496af25927a786"
52guix git authenticate \
53 --cache-key="$cache_key" --stats \
54 --end="$v1_2_0_commit"
55
49rm "$XDG_CACHE_HOME/guix/authentication/$cache_key" 56rm "$XDG_CACHE_HOME/guix/authentication/$cache_key"
50 57
51# Commit and signer of the 'v1.0.0' tag. 58# Commit and signer of the 'v1.0.0' tag.