diff options
author | Ludovic Courtès <ludo@gnu.org> | 2024-03-13 12:55:33 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-05-01 17:26:18 +0200 |
commit | 7b4bf4ee888af10406da37934341a7a56186b258 (patch) | |
tree | 4de276cc2177cea3dcb767fd446235cdce7cbc8a /tests | |
parent | 10aa88ea013ae042f53001b9b478ee97de08a299 (diff) | |
download | guix-7b4bf4ee888af10406da37934341a7a56186b258.tar.gz guix-7b4bf4ee888af10406da37934341a7a56186b258.zip |
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')
-rw-r--r-- | tests/guix-git-authenticate.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/guix-git-authenticate.sh b/tests/guix-git-authenticate.sh index ec89f941e6..7b8951b9aa 100644 --- a/tests/guix-git-authenticate.sh +++ b/tests/guix-git-authenticate.sh @@ -1,5 +1,5 @@ # GNU Guix --- Functional package management for GNU -# Copyright © 2020, 2022 Ludovic Courtès <ludo@gnu.org> +# Copyright © 2020, 2022, 2024 Ludovic Courtès <ludo@gnu.org> # # This file is part of GNU Guix. # @@ -46,6 +46,13 @@ guix git authenticate "$intro_commit" "$intro_signer" \ --cache-key="$cache_key" --stats \ --end="$v1_2_0_commit" +# Check a commit that came soon after v1.2.0. No need to repeat $intro_commit +# and $intro_signer because it should have been recorded in '.git/config'. +after_v1_2_0="be4d9527b55b6829e33a6e0727496af25927a786" +guix git authenticate \ + --cache-key="$cache_key" --stats \ + --end="$v1_2_0_commit" + rm "$XDG_CACHE_HOME/guix/authentication/$cache_key" # Commit and signer of the 'v1.0.0' tag. |