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>
This commit is contained in:
parent
2b86976bfd
commit
0f737464a6
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user