summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-16 07:24:34 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-10-16 07:24:34 (GMT)
commitc09a69a83e3edcc634f17cdc7b4c71b91f3228ce (patch)
tree4107ce7156555a7d86855505e8b4c2b052b48b82 /t/test-lib.sh
parentf5dce80611ed865d2d5d1e76c2c3ae64bf99fe99 (diff)
downloadgit-c09a69a83e3edcc634f17cdc7b4c71b91f3228ce.zip
git-c09a69a83e3edcc634f17cdc7b4c71b91f3228ce.tar.gz
git-c09a69a83e3edcc634f17cdc7b4c71b91f3228ce.tar.bz2
Disable hooks during tests.
Individual tests for hooks would want to have their own tests when written. Also we should not pick up from random templates the user happens to have. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/test-lib.sh')
-rwxr-xr-xt/test-lib.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 3f8a6fe..a8f239d 100755
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -164,4 +164,8 @@ test=trash
rm -fr "$test"
mkdir "$test"
cd "$test"
-git-init-db 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
+