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

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 <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Alex Riesen committed Dec 8, 2005 at 21:25 UTC 0f737464a6734d917431cf8df14eb04bd9c4cd8d
1 file changed +2 -2
t/test-lib.sh
+2 -2
@@ -190,8 +190,8 @@ test=trash
190 rm -fr "$test"
191 mkdir "$test"
192 cd "$test"
193 -git-init-db --template=../../templates/blt/ 2>/dev/null ||
194 -error "cannot run git-init-db"
193 +git init-db --template=../../templates/blt/ 2>/dev/null ||
194 +error "cannot run git init-db"
195
196 mv .git/hooks .git/hooks-disabled
197