From: Jeff King Date: Tue, 24 Jul 2012 11:53:05 +0000 (-0400) Subject: test-lib.sh: unset XDG_CONFIG_HOME X-Git-Tag: v1.7.12-rc1~16^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5adf84ebb375eeee998edef9a2b5aaa05df677d0;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/test-lib.sh b/t/test-lib.sh index 9e2b71132..2ac953618 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -61,6 +61,7 @@ unset VISUAL EMAIL LANGUAGE COLUMNS $(perl -e ' my @vars = grep(/^GIT_/ && !/^GIT_($ok)/o, @env); print join("\n", @vars); ') +unset XDG_CONFIG_HOME GIT_AUTHOR_EMAIL=author@example.com GIT_AUTHOR_NAME='A U Thor' GIT_COMMITTER_EMAIL=committer@example.com