diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-25 23:08:34 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-25 23:11:30 -0400 |
commit | 92d1bbbe75df71731d458f5b48bcb0f145428920 (patch) | |
tree | 1a1e7f66959978217ed580ca29101c01ea9b2912 /tools/pre-commit | |
parent | 1f5ceb0db50df9ad0f9048ee02ad749507cbd737 (diff) | |
download | fork-ledger-92d1bbbe75df71731d458f5b48bcb0f145428920.tar.gz fork-ledger-92d1bbbe75df71731d458f5b48bcb0f145428920.tar.bz2 fork-ledger-92d1bbbe75df71731d458f5b48bcb0f145428920.zip |
Don't run the pre-comment hook for the next branch
Diffstat (limited to 'tools/pre-commit')
-rwxr-xr-x | tools/pre-commit | 3 |
1 files changed, 2 insertions, 1 deletions
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 |