Signed-off-by: Felipe Contreras <felipe.contreras@xxxxxxxxx> --- t/t1300-config.sh | 1 + t/test-lib.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/t/t1300-config.sh b/t/t1300-config.sh index 9ff46f3b04..453222b32f 100755 --- a/t/t1300-config.sh +++ b/t/t1300-config.sh @@ -335,6 +335,7 @@ test_expect_success 'working --list' ' git config --list > output && test_cmp expect output ' + test_expect_success '--list without repo produces empty output' ' git --git-dir=nonexistent config --list >output && test_must_be_empty output diff --git a/t/test-lib.sh b/t/test-lib.sh index 54938c6427..49b80a4eb5 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -430,6 +430,7 @@ unset VISUAL EMAIL LANGUAGE COLUMNS $("$PERL_PATH" -e ' my @vars = grep(/^GIT_/ && !/^GIT_($ok)/o, @env); print join("\n", @vars); ') + unset XDG_CACHE_HOME unset XDG_CONFIG_HOME unset GITPERLLIB -- 2.32.0.94.g4574ca548c