diff --git a/git-hooks/commit-msg b/git-hooks/commit-msg index 163ef4d..48daf2a 100755 --- a/git-hooks/commit-msg +++ b/git-hooks/commit-msg @@ -6,7 +6,7 @@ # # client-side git-hook - checks commit message style -pattern='\[(core|frontend|twitter|telegram|email|xmpp|mastodon|tests|doc|misc)\] [[:upper:]].*[^.]' +pattern='\[(core|frontend|telegram|email|xmpp|mastodon|tests|doc|misc)\] [[:upper:]].*[^.]' head -n 1 "$1" | egrep -x "$pattern" > /dev/null if [ $? -ne 0 ]; then echo "commit message doesn't match \"$pattern\"" >&2