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.

@rjmunro rjmunro force-pushed the feature/parse-git-dir branch from 0e07073 to f229dfe Compare May 3, 2018 09:15
@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 rjmunro force-pushed the feature/parse-git-dir branch from f229dfe to be3a4f8 Compare May 4, 2018 08:35
@rjmunro rjmunro force-pushed the feature/parse-git-dir branch from be3a4f8 to aa4d10e Compare June 5, 2018 16:27
@rjmunro rjmunro force-pushed the feature/parse-git-dir branch from aa4d10e to 4b1ac7c Compare June 12, 2018 08:20
@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