From 92d1bbbe75df71731d458f5b48bcb0f145428920 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 25 Oct 2009 23:08:34 -0400 Subject: Don't run the pre-comment hook for the next branch --- tools/pre-commit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/pre-commit b/tools/pre-commit index 41788d01..c049b8f0 100755 --- a/tools/pre-commit +++ b/tools/pre-commit @@ -4,7 +4,8 @@ set -e # Exit if it's not a branch we're interested in being thorough about -if echo $(git rev-parse --symbolic-full-name HEAD) | grep -q ^refs/heads/t/; then +if echo $(git rev-parse --symbolic-full-name HEAD) | \ + egrep -q '^refs/heads/(next|t/)'; then exit 0 fi -- cgit v1.2.3