Skip to content

Commit 5261a9a

Browse files
committedOct 24, 2017
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.
1 parent 628a60b commit 5261a9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎scripts/prepare-commit.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ if [ -z "$MODIFIED" ]; then
5757
exit 0
5858
fi
5959

60-
[ -x ${TOPLEVEL}/scripts/spell_check/check_spelling.sh ] && ${TOPLEVEL}/scripts/spell_check/check_spelling.sh $MODIFIED
60+
if [[ -n "$QGIS_CHECK_SPELLING" && -x ${TOPLEVEL}/scripts/spell_check/check_spelling.sh ]]; then ${TOPLEVEL}/scripts/spell_check/check_spelling.sh $MODIFIED; fi
61+
6162

6263
# save original changes
6364
REV=$(git log -n1 --pretty=%H)

0 commit comments

Comments
 (0)
Please sign in to comment.