summaryrefslogtreecommitdiff
path: root/tools/pre-commit
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-07 04:14:11 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-07 04:14:11 -0400
commit70b1c21603a84876016e70457fe92c1b57be7851 (patch)
tree464c6eece5e840209a8202c334554a80ba64df95 /tools/pre-commit
parent5ce7755f305bb7d72a99432fc50b86d06b5067bc (diff)
downloadfork-ledger-70b1c21603a84876016e70457fe92c1b57be7851.tar.gz
fork-ledger-70b1c21603a84876016e70457fe92c1b57be7851.tar.bz2
fork-ledger-70b1c21603a84876016e70457fe92c1b57be7851.zip
make release-distcheck works again
Diffstat (limited to 'tools/pre-commit')
-rwxr-xr-xtools/pre-commit7
1 files changed, 7 insertions, 0 deletions
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