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>
This commit is contained in:
@ -164,4 +164,8 @@ test=trash
|
|||||||
rm -fr "$test"
|
rm -fr "$test"
|
||||||
mkdir "$test"
|
mkdir "$test"
|
||||||
cd "$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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user