Skip to content

Commit 7ee3760

Browse files
Michael J Grubergitster
authored andcommitted
test-lib.sh: Test for presence of git-init in the right path.
It just happens so that when GIT_EXEC_PATH points to a compiled checkout of git.git it contains "git". Since this is not true in general make test-lib check for "git-init" which is always in GIT_EXEC_PATH. Signed-off-by: Michael J Gruber <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8e24cba commit 7ee3760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/test-lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ test_create_repo () {
454454
repo="$1"
455455
mkdir -p "$repo"
456456
cd "$repo" || error "Cannot setup test environment"
457-
"$GIT_EXEC_PATH/git" init "--template=$owd/../templates/blt/" >&3 2>&4 ||
457+
"$GIT_EXEC_PATH/git-init" "--template=$owd/../templates/blt/" >&3 2>&4 ||
458458
error "cannot run git init -- have you built things yet?"
459459
mv .git/hooks .git/hooks-disabled
460460
cd "$owd"

0 commit comments

Comments
 (0)