use configDir for path mapping as well
This commit is contained in:
parent
7716b23c14
commit
961cafc28e
|
|
@ -36,7 +36,7 @@ export async function detectChangedFiles(baseCommit: string, configDir: string):
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const untrackedFiles = gitFileList(`ls-files --others --exclude-standard`).map(file => path.join(process.cwd(), file));
|
const untrackedFiles = gitFileList(`ls-files --others --exclude-standard`).map(file => path.join(configDir, file));
|
||||||
|
|
||||||
const [gitRoot] = gitFileList('rev-parse --show-toplevel');
|
const [gitRoot] = gitFileList('rev-parse --show-toplevel');
|
||||||
const trackedFilesWithChanges = gitFileList(`diff ${baseCommit} --name-only`).map(file => path.join(gitRoot, file));
|
const trackedFilesWithChanges = gitFileList(`diff ${baseCommit} --name-only`).map(file => path.join(gitRoot, file));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue