Test mode: Tolerate missing git binary

This commit is contained in:
Henry Mercer
2025-12-18 13:01:00 +00:00
parent cec3cc5782
commit 948c7fbf11
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -92985,7 +92985,7 @@ async function initConfig(features, inputs) {
await logGitVersionTelemetry(config, gitVersion);
} catch (e) {
logger.warning(`Could not determine Git version: ${getErrorMessage(e)}`);
if (isInTestMode()) {
if (isInTestMode() && await isBinaryAccessible("git", logger)) {
throw e;
}
}