Repository navigation
Description
add, bump and remove should refuse, before their first write, a merge or rebase in progress, an excluded .gitmodules, and a members that is a file or excluded.
From the checklist triage of 2026-10-15; Brett Heap approved its recommendations at 2026-10-15T16:49:38Z. One pull request covers the lines below.
Lines
- 571(e): every
family.pyverb run during a merge, cherry-pick or rebase fails at its commit, then rolls back. Where: scripts/family.py_commit_one(:817,git commit ... -- <paths>). Effort S; all. On main26c1600: Probe p07: during a--no-commitmerge,add,bumpandremoveeach exit 2 withfatal: cannot do a partial commit during a merge.and leave HEAD, the index,family.yamland the work tree as they were, on main and on family.py:removeandaddrefuse a.gitmodulesthe work tree does not have as the index has it (missing, unstaged, untracked, or behind assume-unchanged or a sparse checkout), so neither commits a change to it nobody staged (#407) #571's head; the state is plausible, and the late failure matches v1.1.0's P2 Tracking: setup, scaffold, family and the shared helpers, creating projects and families #459.b16. (source)
Rides along (backlog; tick it here if the same change covers it)
- 571(d): sparse rules leave
.gitmodulesout and the file is put back by hand;removefails atgit add. Where: scripts/family.py_commit_oneviaforce_stage(scripts/shape_materialize.py:1322). Effort S; all. On main26c1600: Probe p06:ls-files -tshowsH(git cleared skip-worktree),removeexits 2, and HEAD, the index andfamily.yamlare unchanged, on main and on family.py:removeandaddrefuse a.gitmodulesthe work tree does not have as the index has it (missing, unstaged, untracked, or behind assume-unchanged or a sparse checkout), so neither commits a change to it nobody staged (#407) #571's head; the setup is exotic. (source) - 574/5:
addrefuses a FILE namedmembers, or a sparse rule excludingmembers/, only after mounting. Where: scripts/family.py_checked_mount_path(:1938). Effort S; all. On main26c1600: Probes p12a and p12b: both printmounting InkRouter/IRQS at members/IRQS, fail atgit submodule add(Not a directory, or git's sparse hint) and leave the holder as it was, on main and on family.py:addrefuses, before the member is read and on every disk, any path under another spelling ofmembers/, in its index, in HEAD or on disk, and names a remedy per entry that never moves the members' checkouts (#362, #363, #364) #574's head. (source)
Each line above is marked → this issue on its tracking issue. Tick it there too when this closes.
The lines as written on the tracking issues
Every
family.pyverb run during a merge, cherry-pick or rebase fails at its commit, after its first writes, and is rolled back.
- The failure is
git commit -- <paths>: "fatal: cannot do a partial commit during a merge."- family.py:
removeandaddrefuse a.gitmodulesthe work tree does not have as the index has it (missing, unstaged, untracked, or behind assume-unchanged or a sparse checkout), so neither commits a change to it nobody staged (#407) #571's--oursand--theirsrestores name modify/delete conflicts, and their commonest source isgit merge.- Direction: refuse an in-progress merge, cherry-pick or rebase up front, beside the other early refusals.
A sparse checkout whose rules leave
.gitmodulesout, with the file put back on disk by hand.
- git clears the skip-worktree mark, so family.py:
removeandaddrefuse a.gitmodulesthe work tree does not have as the index has it (missing, unstaged, untracked, or behind assume-unchanged or a sparse checkout), so neither commits a change to it nobody staged (#407) #571's check passes.remove's commit then fails atgit add("outside of your sparse-checkout definition") and is rolled back.- Nothing wrong is committed.
addrefuses two states late: a FILE namedmembers, and a sparse checkout that leavesmembers/out.
- Both pass the checks. The member is read and mounted,
git submodule addthen fails, and the unwind restores the holder.- Both could be refused up front, the second naming
git sparse-checkout add members.
Activity
brettheap commentedon Oct 15, 2026
CLAIMED — lane openRepoShape-4, session 11c6c0ef-495a-4a05-94cf-811b7b0a1012@Eagle, 2026-10-15T20:36:48Z, for #612
Logged in
lanes/log/openRepoShape-4.mdatcfde104e715628f3704fd150f5e4001b8bad7468.The three reads (lane-collision-protocol Rule 1):
family.py: #626 fix round 1: the revert and rebase sentences say what…
family.py: #626 fix round 2: `_git_paths` keeps a holder path that ho…
validate-family.py and family.py: a gitlink no section of HEAD's `.gi…
family.py: `add` refuses a `members` file whose deletion is not stage…
family.py: `add`, `bump` and `remove` name a bisect, an empty rebase …