-
-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
I'm trying to open a repository that is a submodule and it is failing as it expects .git to be a directory, not a reference to where the real .git directory is.
For a submodule, .git is a file containing gitdir: ./relative/path/to/real/.git/modules/path/to/submodule
Which is itself a standard .git directory.
Unfortunately if I attempt to reference it it considers the repository bare.
Activity
chris114782 commentedon Mar 1, 2023
In my limited testing, simply updating Repository::initDir to also accept $realGitDir . '/.git' as a file and then read the path of the gitdir out of that, and that seems to work but obviously I have not done anything beyond the most basic testing.