We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e5a5fb commit 9640830Copy full SHA for 9640830
1 file changed
extensions/git/src/git.ts
@@ -435,15 +435,19 @@ export class Git {
435
const [, letter] = match;
436
437
try {
438
- const networkPath = await new Promise<string>(resolve =>
+ let networkPath = await new Promise<string>(resolve =>
439
realpath.native(`${letter}:`, { encoding: 'utf8' }, (err, resolvedPath) =>
440
// eslint-disable-next-line eqeqeq
441
resolve(err != null ? undefined : resolvedPath),
442
),
443
);
444
if (networkPath !== undefined) {
445
+ networkPath = `${networkPath}\\`;
446
return path.normalize(
- repoUri.fsPath.replace(networkPath, `${letter.toLowerCase()}:`),
447
+ repoUri.fsPath.replace(
448
+ networkPath,
449
+ `${letter.toLowerCase()}:${networkPath.endsWith('\\') ? '\\' : ''}`
450
+ ),
451
452
}
453
} catch { }
0 commit comments