kazazor / git-pre-commit

A pre-commit hook that ignores all the unstagged changes while performing the pre-commit command you wrote (Using Shell, Gulp, Grunt etc..)
https://www.npmjs.com/package/git-pre-commit
MIT License
18 stars 5 forks source link

When there is no "precommit" entry in the package.json file it still commit the code #16

Closed kazazor closed 8 years ago

kazazor commented 8 years ago

There is a missing process.exit(1) when this situation occur.

kazazor commented 8 years ago

Fixed in commit: https://github.com/kazazor/git-pre-commit/commit/8db40a7a2b1c81c11d3a46a0f6c3d8f7f3592539