summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2024-05-13 14:53:04 +0200
committerLudovic Courtès <ludo@gnu.org>2024-05-13 16:31:35 +0200
commit723d45866f11b1aceb23d9d3d66c395ea9bf257b (patch)
tree00e79ea7f2d3b90e27ef6a5e1d0a9207d5f3d772 /tests
parentefbdfe1900efa1088fd84ecf88b89a3e9e9ac0a3 (diff)
tests: Remove interference from the user’s Git config.
* tests/guix-download.sh: Set ‘GIT_CONFIG_GLOBAL’ and ‘GIT_CONFIG_SYSTEM’. Reported-by: Ashvith Shetty <ashvithshetty10@gmail.com> Change-Id: Ibe14d23db2e8af58b85c78248997c6dde78e11e0
Diffstat (limited to 'tests')
-rw-r--r--tests/guix-download.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/guix-download.sh b/tests/guix-download.sh
index d4cd2ea6b9d..5195cc2867b 100644
--- a/tests/guix-download.sh
+++ b/tests/guix-download.sh
@@ -1,5 +1,5 @@
1# GNU Guix --- Functional package management for GNU 1# GNU Guix --- Functional package management for GNU
2# Copyright © 2012, 2015, 2016 Ludovic Courtès <ludo@gnu.org> 2# Copyright © 2012, 2015-2016, 2024 Ludovic Courtès <ludo@gnu.org>
3# 3#
4# This file is part of GNU Guix. 4# This file is part of GNU Guix.
5# 5#
@@ -52,6 +52,11 @@ guix download "file:///does-not-exist" "file://$abs_top_srcdir/README" && false
52# Test git support with local repository. 52# Test git support with local repository.
53# First, create a dummy git repo in the temporary directory. 53# First, create a dummy git repo in the temporary directory.
54( 54(
55 # Avoid interference with user config.
56 GIT_CONFIG_GLOBAL=/dev/null
57 GIT_CONFIG_SYSTEM=/dev/null
58 export GIT_CONFIG_SYSTEM GIT_CONFIG_GLOBAL
59
55 cd $test_git_repo 60 cd $test_git_repo
56 git init 61 git init
57 touch test 62 touch test