Repository navigation
Description
Goal: where git 2.43 dies reading a family holder's .gitmodules, before it checks out any member, make bootstrap fails and names the key and its value, and validate-family.py names the same key in every mode, so neither one says ok over a file git refuses.
Filed by lane openRepoShape-5, from #682's fix round 2 (its body's candidate 6; writer w648c, measured with git 2.43.0 against git's own source at v2.43.0) and rv648's verify of 23e1105, which found the form a person can reach by a typo: update = None for N1's update = none, as git config -f .gitmodules submodule.<name>.update None writes it. Lane 5's coordinator placed it in v1.1.1.
Lines (path:line at #682's head f74f640c; both scripts are the family root's pinned copies, under templates/family-root/scripts/)
-
Bootstrap says ok where git dies reading the file.
gitmodules_sections(templates/family-root/scripts/bootstrap.py:263) lists the file withgit config -z --file .gitmodules --list(:296), which reads every one of these without complaint.has_url(:340) andinit_stop(:350) then find a url for every row, so each row git left not checked out is the missing credential's skip, and the run endsfamily bootstrap ok, exit 0. Measured in a plain clone, with Nova's section given one more line (w648c'sp12.sh, every column; rv648'sp11.shmeasured git and bootstrap, not the gate, forupdate = None):line added to Nova's section git's submodule update --init --recursivebootstrap gate, members and --pinsgate, --no-membersupdate = None128, invalid value for 'submodule.members/Nova.update'ok, exit 0 2, member-uninitializedfor Atlasfamily okupdate = !true128, the same ok the same family okurl(no value)128, missing value for 'submodule.members/Nova.url',bad config line 7 in file .gitmodulesok the same family okupdate(no value)128, the same for updateok the same family okignore(no value)128, the same for ignoreok the same family okshallow = maybe128, bad boolean config value 'maybe' for 'submodule.members/Nova.shallow'ok the same family okfetchRecurseSubmodules = bogus128, bad submodule.members/Nova.fetchrecursesubmodules argument: bogusok the same family okA
pathwith no value dies the same way (bad config line). Git's rules areparse_configinsubmodule-config.cat v2.43.0:config_error_nonboolfor apath,ignore,urlorupdatewith no value (:448, :474, :490, :502), whichconfig.cturns intobad config lineand adiefor a file (:1130, :1150);die(_("invalid value for '%s'"))for anupdateother thannone,checkout,rebaseormerge, a!commandincluded (:510;submodule.c:392-406, case-sensitive);git_config_boolforshallow(:517), which dies on a value that is no boolean or number; andparse_fetch_recurse(..., die_on_error)forfetchRecurseSubmodules(:469-471, thedieat :301), which takes a boolean oron-demand. Anignorevalue it does not know is a warning only (:479-482).Direction:
gitmodules_sectionschecks eachsubmodule.*entry it lists against those rules. Where one would make git die, it returns that entry and no sections, as it returnsunmerged(bootstrap.py and validate-family.py: a member no credential would check out fails the family bootstrap, every row's gitlink is asked before any checkout, and--no-membersprints the case-variant move (#648) #682's round 3), andunfetchableasks it first, besideunmerged: every row not checked out gets one reason, such as "git cannot read .gitmodules:submodule.<name>.<key><has no value | is<value>>". The line's cure names the key: set it to a value git takes (forupdate, one ofnone,checkout,rebase,merge), or take it out, and commit.gitmodules. As for every other reason, the holder's records decide, never git's stderr. -
The family gate names none of these.
_gitmodules_sections(templates/family-root/scripts/validate-family.py:977) and_head_gitmodules(:1030) read the work tree's file and HEAD's the same way (_sections_listed, :1015). Measured in every state above: members checked and--pinsrefusemember-uninitializedfor the first row (:579), whose remedy is the samegit submodule update --init --recursivethat dies;--no-memberssaysfamily ok. Direction: fix it in the same change. A finding, saygitmodules-value-refused, for each such entry in the work tree's.gitmodulesand in HEAD's (HEAD's asmember-gitmodules-absentreads it), asked before any member check and under--no-memberstoo, since it needs no member. Its remedy printsgit config -f .gitmodules --unset-all submodule.<name>.<key>, one command to a line asgitmodules-path-unnamedprints them, says which values git takes, and ends with the commit. -
What bootstrap.py and validate-family.py: a member no credential would check out fails the family bootstrap, every row's gitlink is asked before any checkout, and
--no-membersprints the case-variant move (#648) #682 left approximate in bootstrap (its body's "Not changed"):- Where git reads the file from. Git reads the work tree's
.gitmodules; where the work tree has none, the index's, then HEAD's (submodule-config.c:660-664); and none while a merge leaves it unmerged (:703, which bootstrap.py and validate-family.py: a member no credential would check out fails the family bootstrap, every row's gitlink is asked before any checkout, and--no-membersprints the case-variant move (#648) #682's round 3 follows).gitmodules_sectionsreads the work tree's alone (bootstrap.py:293). So where the work tree lacks the file while the index or HEAD holds it (a deletion not yet committed, or a sparse checkout that leaves it out), every row git left not checked out is "no section of .gitmodules gives that path", and the run fails even where a credential was all git lacked. Direction: where the work tree has no.gitmodules, list the index's (:.gitmodules), then HEAD's, withgit config --blob, as git does. submodule.<name>.active. Wheresubmodule.activeis set, git asks a member's ownactivekey first (submodule.c:278).init_stopasks neither (bootstrap.py:374). Direction: readsubmodule.<name>.activefromsubmodule_configas a boolean, before the pathspecs.submodule.active's pathspecs.init_stoptakes the key's presence (bootstrap.py:374), not its patterns (submodule.c:286-298). Under a subset clone'smembers/Atlas, a member outside the subset whose section has no url counts as a stop, though git's init skips it. It is reached only where git also fails for another reason, and then the line names a real defect. Direction: match the plain path patternsgit clone --recurse-submodules=<path>writes (a path, or a leading directory of one), and keep today's reading for a pattern with pathspec magic or a glob.
- Where git reads the file from. Git reads the work tree's
Verify: a parametrized test beside #682's tests/test_family_bootstrap_gate_order.py, one case per line in the table, update = None first, each in a plain clone with the credential: git's update exits 128; bootstrap exits 1, names every row with the new reason and the key, and its last two stderr lines are exact; the entry fixed as the line says and committed, the same run ends ok. The same states for the gate: the new finding in all three modes, exit 1, its printed commands typed, then family ok in every mode. A no-misfire case each for update = none, update = checkout, shallow = true, fetchRecurseSubmodules = on-demand and ignore = bogus: bootstrap's run and the gate as for a good holder. For the fallback, a plain clone whose work tree lost .gitmodules uncommitted, with no credential: the skip, ok. For submodule.<name>.active, a subset clone with submodule.members/<P>.active=false set for a member in the subset. Run tests/test_family_bootstrap_gate_order.py, tests/test_validate_family_unnamed_mounts.py, tests/test_family_head_lost_gitmodules.py, tests/test_doctor_legs_members_next.py and test_family.py's three bootstrap tests, on Linux.
Overlaps. #682 (fix/648-bootstrap-and-gate-order, f74f640) adds the gitmodules_sections, has_url, init_stop and unfetchable this builds on: start after it lands. #745 (fix/704-bootstrap-leg-moves) and #747 (fix/681-validate-family-remedies) are stacked on #682 and edit the same two files. Lane 4's fix/690-siblings-inputs edits templates/family-root/scripts/siblings.py, whose submodule_urls (:226 at f74f640) lists .gitmodules with git config -f --list too; it is not part of this issue. Both scripts here are pinned copies: each holder sees them as upstream-changed, and they are re-pinned in the next shape bump. No README or handbook sentence is made false.
Milestone: v1.1.1. No tool here writes any of these values: each needs a hand edit or a typo such as None (a merge can carry such a value in from another branch, but does not make one; a merge that leaves conflict markers makes git config --file fail, which fails the run rather than ending ok). Git refuses the file loudly, and make bootstrap prints git's fatal: line above the ok, so a person sees that something is wrong; the fault is that the run still says ok.
Activity
brettheap commentedon Oct 17, 2026
CLAIMED — lane openRepoShape-5, session 50cede29-ab82-4ca3-9f67-d98e1a58c8d2@Eagle, 2026-10-17T10:29:13Z, for #768
Logged in
lanes/log/openRepoShape-5.mdat3c097bf5d74dc3981be1dc9eb5f85a934d43aa87.The three reads (lane-collision-protocol Rule 1):
bootstrap.py and validate-family.py: a member no credential would che…
bootstrap.py, validate-family.py and tests/test_family_gitmodules_val…
tests/test_family_gitmodules_values.py: a staged `git rm --cached` be…
bootstrap.py and validate-family.py: a `.gitmodules` value git dies o…
the family root's bootstrap.py: git's update ended by a signal fails …