lint: Add checks for commit messages using gitlint.

Fixes #1131.
This commit is contained in:
Tommy Ip
2017-03-22 20:18:48 +00:00
committed by Tim Abbott
parent 7d8d9c1bf9
commit ec8e47192a
9 changed files with 61 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ if ! [ -d ".git/hooks/" ]; then
exit 1
fi
for hook in pre-commit; do
for hook in pre-commit commit-msg
do
ln -snf ../../tools/"$hook" .git/hooks/
done