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

Changing git path handling when the git is a submodule #97

Closed armata007 closed 2 days ago

armata007 commented 7 years ago

I have run across an issue where my project was a submodule of some other repository. In that case the install script of pre-commit package did not execute properly. I have added handling of this case, by reading file .git in target repository. This file consists of path to the "true" .git folder.