@matheusbsbs / matheus-bagliano / commits / c09a69a83e
Fork 0

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>

Junio C Hamano committed Oct 16, 2005 at 00:24 UTC c09a69a83e3edcc634f17cdc7b4c71b91f3228ce
1 file changed +5 -1
t/test-lib.sh
+5 -1
@@ -164,4 +164,8 @@ test=trash
164 rm -fr "$test"
165 mkdir "$test"
166 cd "$test"
167 -git-init-db 2>/dev/null || error "cannot run git-init-db"
167 +git-init-db --template=../../templates/blt/ 2>/dev/null ||
168 +error "cannot run git-init-db"
169 +
170 +mv .git/hooks .git/hooks-disabled
171 +