Make tests independent of global config files
This was done by setting $HOME to somewhere bogus. A better method is to reuse $GIT_CONFIG, which was invented for ignoring the global config file explicitely. Technically, setting GIT_CONFIG=.git/config could be wrong, but it passes all the tests, and we can keep the tests that way. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Johannes Schindelin committed
Feb 15, 2007 at 11:43 UTC
8565d2d853d85f246faa9bcde91aba3415a24d54
1 file changed
+2
-2
t/test-lib.sh
+2
-2
@@ -255,8 +255,8 @@ test_done () {
255
PATH=$(pwd)/..:$PATH
256
GIT_EXEC_PATH=$(pwd)/..
257
GIT_TEMPLATE_DIR=$(pwd)/../templates/blt
258
-HOME=$(pwd)/trash
259
-export PATH GIT_EXEC_PATH GIT_TEMPLATE_DIR HOME
258
+GIT_CONFIG=.git/config
259
+export PATH GIT_EXEC_PATH GIT_TEMPLATE_DIR GIT_CONFIG
260
261
GITPERLLIB=$(pwd)/../perl/blib/lib:$(pwd)/../perl/blib/arch/auto/Git
262
export GITPERLLIB