fix: preserve canonical sub-repos normalization semantics

This commit is contained in:
Tom Boucher
2026-05-15 09:25:49 -04:00
parent 12a9f4f038
commit 173743fd9e
3 changed files with 12 additions and 2 deletions

View File

@@ -110,10 +110,11 @@ function normalizeLegacyKeys(parsed) {
if (Object.prototype.hasOwnProperty.call(result, 'sub_repos')) {
const value = result.sub_repos;
const planning = result.planning ?? {};
if (!planning.sub_repos) {
if (planning.sub_repos === undefined) {
result.planning = { ...planning, sub_repos: value };
}
else {
// canonical nested wins — just drop the stale top-level
result.planning = { ...planning };
}
delete result.sub_repos;