Browse Source

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>
maint
Alex Riesen 19 years ago committed by Junio C Hamano
parent
commit
0f737464a6
  1. 4
      t/test-lib.sh

4
t/test-lib.sh

@ -190,8 +190,8 @@ test=trash @@ -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…
Cancel
Save