summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-07-24 11:53:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-07-24 15:59:07 (GMT)
commit5adf84ebb375eeee998edef9a2b5aaa05df677d0 (patch)
tree1bc1e891205cdc4b330b801bfe7a5c1c6826aa30 /t/test-lib.sh
parente3ebc35b1695e9ac6e9b5978cd4e9ffb7b15f657 (diff)
downloadgit-5adf84ebb375eeee998edef9a2b5aaa05df677d0.zip
git-5adf84ebb375eeee998edef9a2b5aaa05df677d0.tar.gz
git-5adf84ebb375eeee998edef9a2b5aaa05df677d0.tar.bz2
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 9e2b711..2ac9536 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