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
Failure in submodule due to filepath mixup #90
Comments
I have the exact same issue and it stems from https://github.com/azz/pretty-quick/blob/master/src/scms/git.js#L8 |
I'm not really understanding the fix, @cjanietz. I thought |
.git is not a directory but a file in a submodule, therefore its either checking locally or making findUp search for file and dir @azz |
@azz Can we please get this sorted out? Anything else you would like different? |
I am using prettier and pretty-quick in both the main repository and the submodule. Both have their own package.json with a pre-commit hook defined. When using pretty-quick inside the submodule, I get an error. The fileservice tries to acces a directory where the root path of the submodule seems to be replaced by the root path of the main repository. For example:
Main repository is at
/Users/peter.meinhardt/GIT/Customer/Project/
, submodule is at/Users/peter.meinhardt/GIT/Customer/Project/projects/core-module
. I try to commit a file inside the submodule at/Users/peter.meinhardt/GIT/Customer/Project/projects/core-module/src/lib/elements/specific-element
and will get the following error:The text was updated successfully, but these errors were encountered: