mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-14 01:25:43 -05:00
Fixes #4 - Absolute paths fail on Windows due to backslash
Hopefully for real this time
This commit is contained in:
@@ -30,7 +30,7 @@ export default class Git {
|
||||
}
|
||||
|
||||
static repoPath(cwd: string) {
|
||||
return gitCommand(cwd, 'rev-parse', '--show-toplevel').then(data => data.replace(/\r?\n|\r/g, ''));
|
||||
return gitCommand(cwd, 'rev-parse', '--show-toplevel').then(data => data.replace(/\r?\n|\r/g, '').replace(/\\/g, '/'));
|
||||
}
|
||||
|
||||
static blame(fileName: string, repoPath: string, sha?: string) {
|
||||
|
||||
Reference in New Issue
Block a user