From 5261a9a5df53b6d53644ecee801f7120bacbf02c Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Tue, 17 Oct 2017 10:34:05 +0200 Subject: [PATCH] Disable spell check in prepare-commit.sh The spell check slows down the pre-commit hook a lot. Spell checking will still be done on travis. --- scripts/prepare-commit.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/prepare-commit.sh b/scripts/prepare-commit.sh index 82fa23f449b..5f81569f1a8 100755 --- a/scripts/prepare-commit.sh +++ b/scripts/prepare-commit.sh @@ -57,7 +57,8 @@ if [ -z "$MODIFIED" ]; then exit 0 fi -[ -x ${TOPLEVEL}/scripts/spell_check/check_spelling.sh ] && ${TOPLEVEL}/scripts/spell_check/check_spelling.sh $MODIFIED +if [[ -n "$QGIS_CHECK_SPELLING" && -x ${TOPLEVEL}/scripts/spell_check/check_spelling.sh ]]; then ${TOPLEVEL}/scripts/spell_check/check_spelling.sh $MODIFIED; fi + # save original changes REV=$(git log -n1 --pretty=%H)