Skip to content

Commit 5adf84e

Browse files
peffgitster
authored andcommitted
test-lib.sh: unset XDG_CONFIG_HOME
Now that git respects XDG_CONFIG_HOME for some lookups, we must be sure to cleanse the test environment. Otherwise, the user's XDG_CONFIG_HOME could influence the test results. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e3ebc35 commit 5adf84e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/test-lib.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ unset VISUAL EMAIL LANGUAGE COLUMNS $(perl -e '
6161
my @vars = grep(/^GIT_/ && !/^GIT_($ok)/o, @env);
6262
print join("\n", @vars);
6363
')
64+
unset XDG_CONFIG_HOME
6465
6566
GIT_AUTHOR_NAME='A U Thor'
6667

0 commit comments

Comments
 (0)