提交 ff915844 编写于 作者: E Eric Amodio 提交者: Eric Amodio

Fixes #94882 -- checks for trailing \ & protects

if somehow `networkPath` had a trailing \, it would cause this behavior
上级 e19e82b1
......@@ -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 { }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册