From f9de10676c15a65d6df7e430efbb84cebb431ac9 Mon Sep 17 00:00:00 2001 In-Reply-To: <87a6b85o37.fsf_-_@gnu.org> References: <87a6b85o37.fsf_-_@gnu.org> From: =?UTF-8?q?Andr=C3=A9=20Batista?= To: 55399@debbugs.gnu.org Date: Tue, 24 May 2022 19:38:17 -0300 Subject: [PATCH] guix: Disable owner validation when updating cached checkout * guix/git.scm (update-cached-checkout): Disable owner validation checks. --- guix/git.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/guix/git.scm b/guix/git.scm index 53e7219c8c..d5e12188a2 100644 --- a/guix/git.scm +++ b/guix/git.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2021 Kyle Meyer ;;; Copyright © 2021 Marius Bakke ;;; Copyright © 2022 Maxime Devos +;;; Copyright © 2022 André Batista ;;; ;;; This file is part of GNU Guix. ;;; @@ -23,6 +24,7 @@ (define-module (guix git) #:use-module (git) #:use-module (git object) + #:use-module (git settings) #:use-module (git submodule) #:use-module (guix i18n) #:use-module (guix base32) @@ -463,6 +465,8 @@ (define canonical-ref (repository (if cache-exists? (repository-open cache-directory) (clone/swh-fallback url ref cache-directory)))) + ;; Disable owner validation. See . + (set-owner-validation! #f) ;; Only fetch remote if it has not been cloned just before. (when (and cache-exists? (not (reference-available? repository ref))) -- 2.36.0