@matheusbsbs / matheus-bagliano / commits / a6d63b7493
Fork 0

test-lib: avoid assuming that templates/ are in the GIT_EXEC_PATH

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Feb 4, 2009 at 00:26 UTC a6d63b749369f3ba9c6d2f382efd27838604b7db
1 file changed +1 -3
t/test-lib.sh
+1 -3
@@ -454,7 +454,7 @@ test_create_repo () {
454 repo="$1"
455 mkdir -p "$repo"
456 cd "$repo" || error "Cannot setup test environment"
457 - "$GIT_EXEC_PATH/git" init "--template=$GIT_EXEC_PATH/templates/blt/" >&3 2>&4 ||
457 + "$GIT_EXEC_PATH/git" init "--template=$owd/../templates/blt/" >&3 2>&4 ||
458 error "cannot run git init -- have you built things yet?"
459 mv .git/hooks .git/hooks-disabled
460 cd "$owd"
@@ -578,8 +578,6 @@ else
578 PATH=$GIT_VALGRIND/bin:$PATH
579 GIT_EXEC_PATH=$GIT_VALGRIND/bin
580 export GIT_VALGRIND
581 -
582 - make_symlink ../../../templates "$GIT_VALGRIND"/bin/templates || exit
581 fi
582 GIT_TEMPLATE_DIR=$(pwd)/../templates/blt
583 unset GIT_CONFIG