|
From: | Skyler Ferris |
Subject: | [bug#69780] [PATCH 4/4] DRAFT news: Add entry for ‘guix git authenticate’ changes. |
Date: | Fri, 15 Mar 2024 00:58:03 +0000 |
+ (if (or (file-exists? pre-push-hook) + (file-exists? fpost-checkout-hook)) + (begin + (warning (G_ "not overriding pre-existing hooks '~a' and '~a'~%") + pre-push-hook post-checkout-hook) + (display-hint (G_ "Consider running @command{guix git authenticate} +from your pre-push and update hooks so your repository is automatically +authenticated before you push or receive updates.")))
+ (define post-checkout-hook + (in-vicinity directory "hooks/post-checkout"))
+while read local_ref local_oid remote_ref remote_oid +do + guix git authenticate --end=\"$local_ref\" +done\n")
+(define (configured-introduction repository) + "Return two values: the commit and signer fingerprint (strings) as +configured in REPOSITORY. Error out if one or both were missing." + (let* ((config (repository-config repository)) + (commit (config-value config "guix.authentication.introduction-commit")) + (signer (config-value config "guix.authentication.introduction-signer"))) + (unless (and commit signer) + (leave (G_ "unknown introductory commit and signer~%"))) + (values commit signer)))
Typo: this should be "contains", not "container"+(define (configured? repository) + "Return true if REPOSITORY already container introduction info in its +'config' file."
[Prev in Thread] | Current Thread | [Next in Thread] |