2013-05-29 22:23:32 +02:00
|
|
|
#!/bin/bash
|
|
|
|
AUTHOR=$(git log -1 HEAD | grep ^Author | sed 's/Author: //')
|
2014-04-29 03:10:44 +02:00
|
|
|
if ! $(echo "$AUTHOR" | egrep '(humbughq|zulip|dropbox)\.com' >/dev/null); then
|
2013-07-23 20:34:26 +02:00
|
|
|
echo -e "\e[0;91m Invalid non-Zulip commit author: $AUTHOR\e[0m"
|
2013-05-29 22:23:32 +02:00
|
|
|
fi
|
|
|
|
COMMITTER=$(git log -1 HEAD --pretty=fuller | grep ^Commit: | sed 's/Author: //')
|
2014-04-29 03:10:44 +02:00
|
|
|
if ! $(echo "$COMMITTER" | egrep '(humbughq|zulip|dropbox)\.com' >/dev/null); then
|
2013-07-23 20:34:26 +02:00
|
|
|
echo -e "\e[0;91m Invalid non-Zulip committer: $COMMITTER\e[0m"
|
2013-05-29 22:23:32 +02:00
|
|
|
fi
|