From 70b1c21603a84876016e70457fe92c1b57be7851 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 7 Mar 2009 04:14:11 -0400 Subject: make release-distcheck works again --- tools/pre-commit | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools/pre-commit') diff --git a/tools/pre-commit b/tools/pre-commit index b171a83b..3508958d 100755 --- a/tools/pre-commit +++ b/tools/pre-commit @@ -2,6 +2,13 @@ "$(tg --hooks-path)"/pre-commit "$@" || exit $? +if echo $(git rev-parse --symbolic-full-name HEAD) | grep -q ^refs/heads/t/; then + exit 0 +fi +if [ $(git rev-parse --symbolic-full-name HEAD) = refs/heads/test ]; then + exit 0 +fi + # These are the locations I keep my temporary source and build trees in TMPDIR=$HOME/Products/ledger-pre-commit MIRROR=$HOME/Products/ledger-pre-commit-mirror -- cgit v1.2.3