-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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 on network drive broken after upgrade to 1.44.0 #94882
Comments
(Experimental duplicate detection) |
@limenet I can't seem to reproduce this myself, but I could simulate the behavior you were seeing if there was a rogue trailing backslash -- so I've made a change that should hopefully resolve it. Can you please try out Monday's insiders build and see if the issue is resolved for you? Thanks! |
@eamodio thank you for your quick fix! Now the error messages don't appear anymore and it mostly works but vscode (Insider build from this morning) appears to be confused about the file location:
Git detects the change but lists the file under its full path and when clicking the "open file" icon it also opens it at the full path instead of the relative path respective to the workspace root: The first tab is from when I opened the file from the workspace, the second one from "open file" in the Git sidebar. Both tabs refer to the same file although the first (workspace) tab uses the drive letter |
This bug has been fixed in to the latest release of VS Code Insiders! @limenet, you can help us out by confirming things are working as expected in the latest Insiders release. If things look good, please leave a comment with the text Happy Coding! |
/verified Thank you very much, @eamodio ! |
@limenet is the issue you mentioned here: #94882 (comment) gone now too? |
@eamodio yes, that issue is now gone as well! |
Awesome, thanks! |
if somehow `networkPath` had a trailing \, it would cause this behavior
if somehow `networkPath` had a trailing \, it would cause this behavior
Verify steps:
|
Needed to update to git version |
No idea if it is allowed to respond to a closed issue. I have the same problems (can no longer make or stash commits) and use version 1.44.2 of VScode and Git version 2.26.2. Only when I downgraded Git to 2.24.x, I got no more errors with "is outside repository at ...". |
Steps to Reproduce:
Z:\project-name
which points to\\code.swift\code\project-name
).npmrc
When using the latest Insider (from Apr 09) with no extensions, the behavior is similar but slightly different:
It appears that the first backslash in the path (after
Z:
) is discarded as is theproject-name
portion.As implied by the title, the issue only occurs for the network drive projects and not for local projects on drive
C:\
. In those cases, the Git integration works like it did in 1.43.x and there is no smaller and greyed-out path portion visible next to the filename either.Does this issue occur when all extensions are disabled?: Yes
Please let me know if you need any further information and Happy Easter!
Screenshots
(all taken using the same file)
1.44.0
Insider
Git Log:
The text was updated successfully, but these errors were encountered: