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 150 forks source link

Fix issue where changing branches to one without node_modules would p… #112

Open JapSeyz opened 7 years ago

JapSeyz commented 7 years ago

Fix issue where changing branches to one without node_modules would prevent you from committing.

Simply added a statement checking whether or not the node_modules folder exists before trying to access it.

JapSeyz commented 7 years ago

If you would install this, and change to a branch without node_modules, then you would be unable to commit until manually adding this conditional to the file.