fix git/hooks/commit-msg for merge.

This commit is contained in:
Vahagn Khachatryan
2021-03-25 08:05:05 -04:00
parent 5db2e777a4
commit 2ce2aea94c
2 changed files with 6 additions and 12 deletions

View File

@@ -32,7 +32,7 @@
# 3. Move this file into your repository
# $ mv commit-msg /path/to/repo/.git/hooks
# $ chmod +x /path/to/repo/.git/hooks/commit-msg
CHECK=$(cat $1 | aspell --lang=en_US list --add-extra-dicts=$HOME/.aspell.en_US.per)
CHECK=$(cat $1 | head -1 | aspell --lang=en_US list --add-extra-dicts=$HOME/.aspell.en_US.per)
#CHECK=$(cat $1 | hunspell -s -d en_US,${HOME}/devel/scripts/git/my_dictionary -l)
if [ "${CHECK}" != "" ]; then
echo "Spell Check Error:"