pre-commit runs check only on master, and uses tg

This commit is contained in:
John Wiegley 2009-03-05 21:27:19 -04:00
parent d3c93b73cb
commit 324f464606

View file

@ -1,5 +1,11 @@
#!/bin/sh
"$(tg --hooks-path)"/pre-commit "$@" || exit $?
if [ ! $(git rev-parse --symbolic-full-name HEAD) = refs/heads/master ]; 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