use "git init-db" in tests
authorAlex Riesen <raa.lkml@gmail.com>
Thu, 8 Dec 2005 20:25:55 +0000 (21:25 +0100)
committerJunio C Hamano <junkio@cox.net>
Fri, 9 Dec 2005 20:51:04 +0000 (12:51 -0800)
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>
t/test-lib.sh

index 0539dacc1c2bcce02a5f64a8c61571eabd9a7607..3704e5faf00dce399e859b7210f7d5a6477fc880 100755 (executable)
@@ -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