This provides some extra automation.

* etc/git/post-merge [! guix.authenticate.introduction-commit]: Run
initial 'guix authenticate' command, as documented in (info "(guix) Building
from Git").

Fixes <https://issues.guix.gnu.org/80564>.

Change-Id: I5775514c6b8785213e2d0e834bdd7e3a961c8930
---
 etc/git/post-merge | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/etc/git/post-merge b/etc/git/post-merge
index f2ad37d35c4..9f116dd3e9c 100755
--- a/etc/git/post-merge
+++ b/etc/git/post-merge
@@ -1,3 +1,9 @@
 #!/bin/sh
 # Authenticate the repo upon 'git pull' and similar.
-exec guix git authenticate
+if ! git config guix.authentication.introduction-commit; then
+    exec guix git authenticate 9edb3f66fd807b096b48283debdcddccfea34bad \
+         "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA" \
+         -k origin/keyring
+else
+    exec guix git authenticate
+fi

base-commit: 15cd6eb94ce50a55116cec2071fc4f2ab3367b8c
-- 
2.52.0




Reply via email to