If a submodule's directory is a junction (Windows), git doesn't detect it as a repository and cannot work on such submodule.
For example, imagine a repository root
is in c:\src\root
, and that has one submodule subrepo
, that is a junction to another drive. So c:\src\root\subrepo
links to d:\submodules\subrepo
.
If you try any git command on c:\src\root\subrepo
you will receive an error message like
$ git pull
fatal: not a git repository: d:/submodules/subrepo/../.git/modules/subrepo
How can I solve these issues?