Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use git rev-parse --git-dir to find a git dir #57

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rjmunro
Copy link
Contributor

@rjmunro rjmunro commented May 2, 2018

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.

@coveralls
Copy link

coveralls commented May 3, 2018

Coverage Status

Coverage decreased (-1.08%) to 97.872% when pulling 4b1ac7c on rjmunro:feature/parse-git-dir into f7e9bd5 on tarmolov:master.

@rjmunro
Copy link
Contributor Author

rjmunro commented Jun 12, 2018

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Properly lookup git hooks directory
2 participants