-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Git: Support opening repositories on symlinked paths #5970
Comments
It would be nice to find nested git repos as well. Some of us are fortunate enough to not code on Monoliths. |
It would be nice to have an option to NOT do GIT change tracking inside symlinks. If my symlink is to another folder in the same git repo I don't want the changed files showing up twice in Code's Git view. |
This issue is about displaying symlinks in the git view and what happens when you click them. Neither Code nor git follow (or should follow) the symlinks. |
Ok, off topic, but I am seeing VScode following symlinks in the git view. Running "git status" does not show these files. Should I create a new issue or discuss this somewhere else? |
Can you take a screenshot to show me what you mean? |
I know what causes it. Here's my mount command: |
Actually, no more errors when you click it. We handle it nicely, even with decorations. |
We just can't handle the root being a symlink in itself. |
Still not fixed... git gutter indicator not shown in remote development via ssh. |
I'm still encountering issues with this on W11 + VS Insiders + having a directory junction in the path. The Source Control tab correctly detects changes, but the File Explorer tab + the gutter indications are both not functional. Is someone on the vscode team working to address this issue? |
Windows 10 using vscode on WSL1 still has this bug |
the root cause I believe is quite clear: vscode git extension uses the command main/extensions/git/src/git.ts#L481-L484 however, when in cases where repo is located at a linked path, git returns the realpath instead.
so I propose |
VSCode Version: 1.79.2 (Universal) the bug still exists where the changes cannot be tracked by git if the project fold is a soft link. |
@frankli0324, thank you very much for pointing out the Todays VS Code Insiders release (v1.81) contains code changes to better handle repositories that have symbolic links on their path. I have confirmed that 1) diff decorations in the editor as working as expected, 2) resources in the "Source Control" view are opened correctly. The only known issue that I am tracking is that there are cases in which the same repository is duplicated, which I am looking to address early next week. It would be great if people using symbolic links would download and install the latest VS Code Insiders release, upgrade to git 2.31 and try things out so that we can find some of the issues that are still present that I might have missed. Thank you very much for your help and apologies that it took so long to get this addressed |
Works for me! ❤️ |
Today's Insiders release (2022-07-11) contains the fix so the issues mentioned above. Let me know if you still see any issues. |
Given the positive feedback and no new issues reported I will go ahead and close this issue as resolved. In case any of you find any issues with the symbolic link support please file a separate issue and mention this one for reference. Thank you! |
@lszomoru I'm having a similar issue. The issue is due to the permission for microsoft/vscode-remote-release#8731 outlined there. |
Ok the issue seems to be particular to my cluster that is set up in a ridiculous fashion. There is a odd token kerberos thing that they over manage (mentioned here https://unix.stackexchange.com/questions/724685/how-does-one-authenticate-with-a-command-that-requires-your-password-in-linux) anyway once I run reauth it works. So make sure your permissions are right, for me it was through by getting the token again. The symlinks refreshed by themselvers. |
Steps to Reproduce:
ln -s /foo/bar .
/bar
folder.If now you click on staged
/bar
folder, you'll get an errorWarn: Can't open this git resource.
The text was updated successfully, but these errors were encountered: