浏览代码

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

Hopefully for real this time
main
Eric Amodio 8 年前
父节点
当前提交
0ee09d9d87
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/git.ts

+ 1
- 1
src/git.ts 查看文件

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

正在加载...
取消
保存