From 723d45866f11b1aceb23d9d3d66c395ea9bf257b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 13 May 2024 14:53:04 +0200 Subject: [PATCH] =?UTF-8?q?tests:=20Remove=20interference=20from=20the=20u?= =?UTF-8?q?ser=E2=80=99s=20Git=20config.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * tests/guix-download.sh: Set ‘GIT_CONFIG_GLOBAL’ and ‘GIT_CONFIG_SYSTEM’. Reported-by: Ashvith Shetty Change-Id: Ibe14d23db2e8af58b85c78248997c6dde78e11e0 --- tests/guix-download.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/guix-download.sh b/tests/guix-download.sh index d4cd2ea6b9..5195cc2867 100644 --- a/tests/guix-download.sh +++ b/tests/guix-download.sh @@ -1,5 +1,5 @@ # GNU Guix --- Functional package management for GNU -# Copyright © 2012, 2015, 2016 Ludovic Courtès +# Copyright © 2012, 2015-2016, 2024 Ludovic Courtès # # This file is part of GNU Guix. # @@ -52,6 +52,11 @@ guix download "file:///does-not-exist" "file://$abs_top_srcdir/README" && false # Test git support with local repository. # First, create a dummy git repo in the temporary directory. ( + # Avoid interference with user config. + GIT_CONFIG_GLOBAL=/dev/null + GIT_CONFIG_SYSTEM=/dev/null + export GIT_CONFIG_SYSTEM GIT_CONFIG_GLOBAL + cd $test_git_repo git init touch test