mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-15 17:25:33 -05:00
Fixes issues with paths on Windows
This commit is contained in:
@@ -64,6 +64,8 @@ export class GitUri extends Uri {
|
||||
if (this.repoPath) {
|
||||
directory = path.relative(this.repoPath, directory);
|
||||
}
|
||||
directory = Git.normalizePath(directory);
|
||||
|
||||
return (!directory || directory === '.')
|
||||
? path.basename(this.fsPath)
|
||||
: `${path.basename(this.fsPath)}${separator}${directory}`;
|
||||
|
||||
Reference in New Issue
Block a user