You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The paths in workspace.workspaceFolders do not have their symlinks resolved.
The paths in the git extension's API.repositories do have their symlinks resolved.
This seems inconsistent and makes life hard if you want to easily check the relation between the two paths.
It seems the git extension itself gets confused by this and shows the full path in the SCM view if the repo/workspace folder is in a symlinked folder. Notably, the file watcher also doesn't resolve symlinks.
I think the paths returned from the git extension should not have their symlinks resolved so that they can be easily compared with all the other paths from vs code.
The text was updated successfully, but these errors were encountered:
@letmaik, thank you very much for reporting this issue and apologies for not getting back to you on this. The git extension calls git.exe (ex: git rev-parse --show-toplevel) to determine the exact path of a repository. We are doing this so that we can handle scenarios in which the folder/workspace has been opened with incorrect casing of the path. At the moment git rev-parse resolves symbolic links and as far as I know, there are not plans to change this behaviour. So the git extension is limited to using the real path as the repository root.
I am not really sure what can be done here given the current constrains but I am opened for suggestions. We do have an issue to better handle repositories with symbolic links but at the moment this work has not been planned - #5970.
lszomoru
added
under-discussion
Issue is under discussion for relevance, priority, approach
and removed
bug
Issue identified by VS Code Team member as probable bug
labels
Dec 13, 2022
The paths in
workspace.workspaceFolders
do not have their symlinks resolved.The paths in the git extension's
API.repositories
do have their symlinks resolved.This seems inconsistent and makes life hard if you want to easily check the relation between the two paths.
It seems the git extension itself gets confused by this and shows the full path in the SCM view if the repo/workspace folder is in a symlinked folder. Notably, the file watcher also doesn't resolve symlinks.
I think the paths returned from the git extension should not have their symlinks resolved so that they can be easily compared with all the other paths from vs code.
The text was updated successfully, but these errors were encountered: