-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
Submodules and working trees are not handled correctly #971
Comments
What would you expect to happen in that case? Read that file and open the corresponding repo? In that case it could be an easy fix over there: Line 174 in f94616e
|
Yes, that would be the same behavior as git. |
As far as I have seen, the paths in these files don't recurse. Instead, nested submodules/working trees point to the top most "real" git dir. |
Altered logic for detecting git directory. Instead of erroring on non-direcctory .git files, now parses the file and returns the linked gitdir.
I have a WIP solution for this that I will post probably tonight after I clean |
Oh....Oops...I did not notice that a solution for this was already posted |
fix(#971): parse submodule .git files instead of erroring
In git submodules and working trees the .git path is a file linking to the real working tree via following syntax:
This is not handled correctly and throws a
Error: .git exist but is not a directory
errorThe text was updated successfully, but these errors were encountered: