mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-16 09:35:40 -05:00
Fixes issues with paths on Windows
This commit is contained in:
@@ -86,7 +86,7 @@ export class GitCommit implements IGitCommit {
|
||||
}
|
||||
|
||||
getFormattedPath(separator: string = ' \u00a0\u2022\u00a0 '): string {
|
||||
const directory = path.dirname(this.fileName);
|
||||
const directory = Git.normalizePath(path.dirname(this.fileName));
|
||||
return (!directory || directory === '.')
|
||||
? path.basename(this.fileName)
|
||||
: `${path.basename(this.fileName)}${separator}${directory}`;
|
||||
|
||||
Reference in New Issue
Block a user