Pārlūkot izejas kodu

Fixes #4 - Absolute paths fail on Windows due to backslash

Hopefully for real this time
main
Eric Amodio pirms 8 gadiem
vecāks
revīzija
0ee09d9d87
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      src/git.ts

+ 1
- 1
src/git.ts Parādīt failu

@ -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) {

Notiek ielāde…
Atcelt
Saglabāt