Allow committing with dropbox.com email addresses.

Later we can remove the ability to commit with older emails.

(imported from commit fe44cc1ffcc79f3c393e3a84c15741130605d3ec)
This commit is contained in:
Tim Abbott 2014-04-28 18:10:44 -07:00
parent 672603d6cd
commit ddbb3a37fb
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
#!/bin/bash
AUTHOR=$(git log -1 HEAD | grep ^Author | sed 's/Author: //')
if ! $(echo "$AUTHOR" | egrep '(humbughq|zulip)\.com' >/dev/null); then
if ! $(echo "$AUTHOR" | egrep '(humbughq|zulip|dropbox)\.com' >/dev/null); then
echo -e "\e[0;91m Invalid non-Zulip commit author: $AUTHOR\e[0m"
fi
COMMITTER=$(git log -1 HEAD --pretty=fuller | grep ^Commit: | sed 's/Author: //')
if ! $(echo "$COMMITTER" | egrep '(humbughq|zulip)\.com' >/dev/null); then
if ! $(echo "$COMMITTER" | egrep '(humbughq|zulip|dropbox)\.com' >/dev/null); then
echo -e "\e[0;91m Invalid non-Zulip committer: $COMMITTER\e[0m"
fi