diff --git a/extensions/git/src/git.ts b/extensions/git/src/git.ts index 851036b15f47c..f3de788998f09 100644 --- a/extensions/git/src/git.ts +++ b/extensions/git/src/git.ts @@ -443,7 +443,10 @@ export class Git { ); if (networkPath !== undefined) { return path.normalize( - repoUri.fsPath.replace(networkPath, `${letter.toLowerCase()}:`), + repoUri.fsPath.replace( + networkPath, + `${letter.toLowerCase()}:${networkPath.endsWith('\\') ? '\\' : ''}` + ), ); } } catch { }