summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2005-12-08 20:25:55 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-12-09 20:51:04 (GMT)
commit0f737464a6734d917431cf8df14eb04bd9c4cd8d (patch)
tree1ffc80aea4799a71db4811289f99d968cb8f46f2
parent2b86976bfd6e42609692d57fffaef72bd985c23a (diff)
downloadgit-0f737464a6734d917431cf8df14eb04bd9c4cd8d.zip
git-0f737464a6734d917431cf8df14eb04bd9c4cd8d.tar.gz
git-0f737464a6734d917431cf8df14eb04bd9c4cd8d.tar.bz2
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>
-rwxr-xr-xt/test-lib.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 0539dac..3704e5f 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