Remove git commit domain restrictions.

(imported from commit a756428d0b95db95fb093e78a182ad8873914f54)
This commit is contained in:
Jonathan Dahan
2015-08-19 15:43:16 -07:00
committed by Tim Abbott
parent 1e7d7c0b71
commit 795f191fb3
2 changed files with 1 additions and 10 deletions

View File

@@ -1,9 +0,0 @@
#!/bin/bash
AUTHOR=$(git log -1 HEAD | grep ^Author | sed 's/Author: //')
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|dropbox)\.com' >/dev/null); then
echo -e "\e[0;91m Invalid non-Zulip committer: $COMMITTER\e[0m"
fi

View File

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