mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
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
This commit is contained in:
parent
efbdfe1900
commit
723d45866f
1 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
# GNU Guix --- Functional package management for GNU
|
||||
# Copyright © 2012, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
|
||||
# Copyright © 2012, 2015-2016, 2024 Ludovic Courtès <ludo@gnu.org>
|
||||
#
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue