tarmolov / git-hooks-js

A tool to manage and run project git hooks
167 stars 30 forks source link

It keeps say 'Cannot find git-hooks. Did you install it?' #6 #9

Closed JamesMcGuigan closed 8 years ago

JamesMcGuigan commented 8 years ago

One of the common getting started errors is non-executable permissions on the hook script files. I have added a user friendly try/catch error message to hint at this possible problem. I have not tested this on windows, and I have not done an exhaustive list of all the reasons child_process.spawn() might throw an exception, assuming a permissions issue is the primary cause.

This however is a much less obscure error message than: Cannot find git-hooks. Did you install it?

https://github.com/tarmolov/git-hooks-js/issues/6

JamesMcGuigan commented 8 years ago

Example error message is: git-hooks unable to execute file: /Users/jamie/Edgefolio/source/webapps/.githooks/pre-commit/npm-shrinkwrap.sh with permissions: 644 is the file executable?

tarmolov commented 8 years ago

I cannot approve the pr because of the following issues:

I took advantage of your pr and fixed the issue. Thank you!

tarmolov commented 8 years ago

1.0.1