Open rjmunro opened 6 years ago
@tarmolov This should be ready to merge. It's failing coveralls because it adds one more uncovered line, which is a throw statement that happens if there is an unknown error. I don't know how to fake the kind of error, so I can't write tests for it. Something like git not being installed, or trying to install in a folder that doesn't exist might do it - I'm not sure.
Inspired by @Kampfgnom's work, but using execSync to simplify things a lot.
This fixes #48, meaning that hooks will be installed if the project is a submodule.