We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In git submodules .git is a file pointing to the "real" git-dir instead of a directory.
.git
The current implementation of getClosestGitPath does not take this case into account and the githooks --install command fails.
githooks --install
One possible solution is to use git rev-parse --git-dir to get the git directory for the cwd. I implemented that solution naively in my fork: https://github.com/Kampfgnom/git-hooks-js
git rev-parse --git-dir
The problem is: The tests expect a broken implementation and no longer pass with the given solution.
In the context of my current project I do not have the time to investigate any further and fix the issue, which is why I am posting my fork "as is".
The text was updated successfully, but these errors were encountered:
See #48
Sorry, something went wrong.
No branches or pull requests
In git submodules
.git
is a file pointing to the "real" git-dir instead of a directory.The current implementation of getClosestGitPath does not take this case into account and the
githooks --install
command fails.One possible solution is to use
git rev-parse --git-dir
to get the git directory for the cwd. I implemented that solution naively in my fork: https://github.com/Kampfgnom/git-hooks-jsThe problem is: The tests expect a broken implementation and no longer pass with the given solution.
In the context of my current project I do not have the time to investigate any further and fix the issue, which is why I am posting my fork "as is".
The text was updated successfully, but these errors were encountered: