From 795f191fb3a6e7437b8c7d34a6bfab24864bcd90 Mon Sep 17 00:00:00 2001 From: Jonathan Dahan Date: Wed, 19 Aug 2015 15:43:16 -0700 Subject: [PATCH] Remove git commit domain restrictions. (imported from commit a756428d0b95db95fb093e78a182ad8873914f54) --- tools/post-commit | 9 --------- tools/setup-git-repo | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100755 tools/post-commit diff --git a/tools/post-commit b/tools/post-commit deleted file mode 100755 index d510777128..0000000000 --- a/tools/post-commit +++ /dev/null @@ -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 diff --git a/tools/setup-git-repo b/tools/setup-git-repo index c4f0e2431c..3c21c8677d 100755 --- a/tools/setup-git-repo +++ b/tools/setup-git-repo @@ -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