This commit is contained in:
Eric Amodio
2016-09-15 10:50:45 -04:00
parent dcb789f58d
commit 2be76ed8a8
3 changed files with 3 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ function gitCommand(cwd: string, ...args) {
export default class Git {
static normalizePath(fileName: string, repoPath: string) {
repoPath = repoPath.replace(/\\/g, '/');
if (isAbsolute(fileName) && fileName.startsWith(repoPath)) {
fileName = relative(repoPath, fileName);
}