simplify error message to not point user into wrong direction
This commit is contained in:
parent
dd0eddd556
commit
91b478e475
|
|
@ -33,10 +33,8 @@ export async function detectChangedTestFiles(baseCommit: string, configDir: stri
|
||||||
const isShallowClone = childProcess.execSync('git rev-parse --is-shallow-repository', { encoding: 'utf-8', stdio: 'pipe' }).trim() === 'true';
|
const isShallowClone = childProcess.execSync('git rev-parse --is-shallow-repository', { encoding: 'utf-8', stdio: 'pipe' }).trim() === 'true';
|
||||||
if (isShallowClone) {
|
if (isShallowClone) {
|
||||||
throw new Error([
|
throw new Error([
|
||||||
`Revision '${baseCommit}' is not available in the local repository.`,
|
`The repository is a shallow clone and does not have '${baseCommit}' available locally.`,
|
||||||
`On CI, this is likely caused by a shallow clone.`,
|
`Note that GitHub Actions checkout is shallow by default: https://github.com/actions/checkout`
|
||||||
`To fix, clone the full repository history:`,
|
|
||||||
'e.g. for GitHub Actions: https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches'
|
|
||||||
].join('\n'));
|
].join('\n'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue