File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -457,7 +457,7 @@ test_create_repo () {
457
457
repo=" $1 "
458
458
mkdir -p " $repo "
459
459
cd " $repo " || error " Cannot setup test environment"
460
- " $GIT_EXEC_PATH /git" init " --template=$owd /../templates/blt/" >&3 2>&4 ||
460
+ " $GIT_EXEC_PATH /git- init" " --template=$owd /../templates/blt/" >&3 2>&4 ||
461
461
error " cannot run git init -- have you built things yet?"
462
462
mv .git/hooks .git/hooks-disabled
463
463
cd " $owd "
@@ -517,8 +517,16 @@ test_done () {
517
517
TEST_DIRECTORY=$( pwd)
518
518
if test -z " $valgrind "
519
519
then
520
- PATH=$TEST_DIRECTORY /..:$PATH
521
- GIT_EXEC_PATH=$TEST_DIRECTORY /..
520
+ if test -z " $GIT_TEST_INSTALLED "
521
+ then
522
+ PATH=$TEST_DIRECTORY /..:$PATH
523
+ GIT_EXEC_PATH=$TEST_DIRECTORY /..
524
+ else
525
+ GIT_EXEC_PATH=$( $GIT_TEST_INSTALLED /git --exec-path) ||
526
+ error " Cannot run git from $GIT_TEST_INSTALLED ."
527
+ PATH=$GIT_TEST_INSTALLED :$TEST_DIRECTORY /..:$PATH
528
+ GIT_EXEC_PATH=${GIT_TEST_EXEC_PATH:- $GIT_EXEC_PATH }
529
+ fi
522
530
else
523
531
make_symlink () {
524
532
test -h " $2 " &&
You can’t perform that action at this time.
0 commit comments