test-lib.sh: unset XDG_CACHE_HOME
authorGenki Sky <redacted>
Fri, 16 Feb 2018 02:46:04 +0000 (21:46 -0500)
committerJunio C Hamano <redacted>
Fri, 16 Feb 2018 19:23:10 +0000 (11:23 -0800)
commit7976e901c8df980a45a881bcc8cdf6e1095133a6
tree773cd4a5a8120ca836da29e1211ed951c051003c
parent9752ad0bb79f680bca48db7adc45338b298304b0
test-lib.sh: unset XDG_CACHE_HOME

git respects XDG_CACHE_HOME for the credential cache. So, we should
unset XDG_CACHE_HOME for the test environment, lest a user's custom one
cause failure in the test.

For example, t/t0301-credential-cache.sh expects a default directory
to be used if it hasn't explicitly set XDG_CACHE_HOME.

Signed-off-by: Genki Sky <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/test-lib.sh
git clone https://git.99rst.org/PROJECT