observing / pre-commit

Automatically installs a git pre-commit script in your git repository which runs your `npm test` on pre-commit
MIT License
1.88k stars 152 forks source link

Run hooks only on certain branches #114

Closed angrykoala closed 5 years ago

angrykoala commented 6 years ago

Hi, As far as I know, there is no way to run the pre-commit hooks on certain branches. Currently I'm running pre-commit tests on all the branches on my project, but I also have a gh-pages branch without test (or package.json) so the pre-commit hooks are sending an alert.

Is there a way of skipping that branch, or setting up which branches do you want to test?