Error git invalid symlink in windows

I have a project with the following structure

c:\root

   subproject1/

   subproject2/

   subproject3/

where subproject1, subproject2 and subproject3 are 3 independent clones from 3 different repositories

in subproject2 and subproject3 I need a symlink to subproject1:

cmd /c mklink /d c:\root\subproject2\subproject1 c:\root\subproject1

cmd /c mklink /d c:\root\subproject3\subproject1 c:\root\subproject1

my project windows is fine: phpstorm detects the simlinks and I can navigate through them

the problem is that git windows does not like this configuration. whenever I acces Version Control windows, I can see a red error message at the bottom:

Error updating changes: Invalid symlink 'c:/root/subproject2/subproject1': Function not implemented' git status --porcelain' failed in submodule subproject1

If I remove the symlink, the Version Control windows works fine again

Any suggestions, please?

 

 

0

I will answer myself :)

It looks like that the workaround is to create the symlinks using /j option instead of /d:

cmd /c mklink /j c:\root\subproject2\subproject1 c:\root\subproject1

cmd /c mklink /j c:\root\subproject3\subproject1 c:\root\subproject1

0

请先登录再写评论。