Skip to content

Commit

Permalink
Disable hooks during tests.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Oct 16, 2005
1 parent f5dce80 commit c09a69a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c09a69a

Please sign in to comment.