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.
This commit is contained in:
Matthias Kuhn 2017-10-17 10:34:05 +02:00
parent 628a60be27
commit 5261a9a5df

View File

@ -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)