Skip to content

Commit c09a69a

Browse files
author
Junio C Hamano
committed
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 <[email protected]>
1 parent f5dce80 commit c09a69a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

t/test-lib.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,8 @@ test=trash
164164
rm -fr "$test"
165165
mkdir "$test"
166166
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+

0 commit comments

Comments
 (0)