Don't disable if we don't need the git version

This commit is contained in:
Henry Mercer
2026-03-27 18:52:56 +00:00
parent 6643a7d207
commit 88a7e5118e
3 changed files with 35 additions and 31 deletions
+13 -11
View File
@@ -107054,17 +107054,19 @@ async function validateOverlayDatabaseMode(overlayDatabaseMode, useOverlayDataba
);
return new Failure("no-git-root" /* NoGitRoot */);
}
if (gitVersion === void 0) {
logger.warning(
`Cannot build an ${overlayDatabaseMode} database because the Git version could not be determined. Falling back to creating a normal full database instead.`
);
return new Failure("incompatible-git" /* IncompatibleGit */);
}
if (await hasSubmodules(sourceRoot) && !gitVersion.isAtLeast(GIT_MINIMUM_VERSION_FOR_OVERLAY_WITH_SUBMODULES)) {
logger.warning(
`Cannot build an ${overlayDatabaseMode} database because the repository has submodules and the installed Git version is older than ${GIT_MINIMUM_VERSION_FOR_OVERLAY_WITH_SUBMODULES}. Falling back to creating a normal full database instead.`
);
return new Failure("incompatible-git" /* IncompatibleGit */);
if (await hasSubmodules(sourceRoot)) {
if (gitVersion === void 0) {
logger.warning(
`Cannot build an ${overlayDatabaseMode} database because the repository has submodules and the Git version could not be determined. Falling back to creating a normal full database instead.`
);
return new Failure("incompatible-git" /* IncompatibleGit */);
}
if (!gitVersion.isAtLeast(GIT_MINIMUM_VERSION_FOR_OVERLAY_WITH_SUBMODULES)) {
logger.warning(
`Cannot build an ${overlayDatabaseMode} database because the repository has submodules and the installed Git version is older than ${GIT_MINIMUM_VERSION_FOR_OVERLAY_WITH_SUBMODULES}. Falling back to creating a normal full database instead.`
);
return new Failure("incompatible-git" /* IncompatibleGit */);
}
}
return new Success({
overlayDatabaseMode,