From: Alex Riesen Date: Thu, 8 Dec 2005 20:25:55 +0000 (+0100) Subject: use "git init-db" in tests X-Git-Tag: v0.99.9m^2~19 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=0f737464a6734d917431cf8df14eb04bd9c4cd8d;p=git.git 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 --- diff --git a/t/test-lib.sh b/t/test-lib.sh index 0539dacc..3704e5fa 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