From 0f737464a6734d917431cf8df14eb04bd9c4cd8d Mon Sep 17 00:00:00 2001 From: Alex Riesen Date: Thu, 8 Dec 2005 21:25:55 +0100 Subject: [PATCH] use "git init-db" in tests This is to catch an error where tests are run without first building what are being tested. Relying on prefixing $PATH with the build directory and expect that the PATH mechanism would find what we just built would silently run an already installed binaries from the PATH. Signed-off-by: Alex Riesen Signed-off-by: Junio C Hamano --- t/test-lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/test-lib.sh b/t/test-lib.sh index 0539dacc1..3704e5faf 100755 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -190,8 +190,8 @@ test=trash rm -fr "$test" mkdir "$test" cd "$test" -git-init-db --template=../../templates/blt/ 2>/dev/null || -error "cannot run git-init-db" +git init-db --template=../../templates/blt/ 2>/dev/null || +error "cannot run git init-db" mv .git/hooks .git/hooks-disabled -- 2.26.2