[twitter] Removed twitter from git hook

This commit is contained in:
missytake 2023-03-18 16:03:53 +01:00
parent 6a8bc89f3a
commit b4b7504a64

View file

@ -6,7 +6,7 @@
# #
# client-side git-hook - checks commit message style # 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 head -n 1 "$1" | egrep -x "$pattern" > /dev/null
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "commit message doesn't match \"$pattern\"" >&2 echo "commit message doesn't match \"$pattern\"" >&2