You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bump-leg.py: the leg's fetch carries every refspec of the leg's own that can bring a tag under origin/ (tags onto the branches' names or in a folder, a mirror into origin/ or in a folder, a short name), so a branch and a tag of one name fail it and a tag answers for a branch, as family.py bump's did before #946 and #1027 #1037
Goal:bump-leg.py's fetch of a leg leaves out every refspec of the leg's own that can bring a tag under refs/remotes/origin/, and one that gives another namespace the branches' names. A tag then never answers for a branch in on_a_remote_branch, and the fetch never fails where the leg's own git fetch origin works. This is what #946 (#905) and #1027 (#1009) did for family.py bump's member fetch.
Lane openRepoShape-4's RV1027 asked for this issue in its review of #1027 (issuecomment-6280876954). Lane 4's W1009 measured the states below.
State on main e2f9fc424 (scripts/bump-leg.py):
_leg_fetch_refspecs (:1039) has no clause for tags and none for the branches' glob. It carries every positive refspec of the leg's own whose destination is under refs/remotes/origin/.
on_a_remote_branch (:1020-1031) reads every ref under refs/remotes/origin/ (git for-each-ref --contains <commit> refs/remotes/origin/). So a tag the fetch writes there answers for a branch.
Measured in process on git 2.43. Each refspec was the only remote.origin.fetch of a scratch repository, asked of bump-leg.py's _leg_fetch_refspecs and of family.py's _origin_fetch_refspecs at #1027's head:
What follows, by the mechanism #946 measured for members. This has NOT yet been measured end to end on a leg.
Where a branch and a tag of the remote share the name such a refspec writes, the leg's fetch exits 128 with "Cannot fetch both". bump-leg.py then gives its failed-fetch note, though the leg's own git fetch origin exits 0.
Give _leg_fetch_refspecs the clauses family.py's _origin_fetch_refspecs has:
a destination outside refs/remotes/origin/ (it has this one already);
a source that can name a tag: under refs/tags/, a pattern whose part before the * is a start of refs/tags/, or no pattern and not under refs/;
the branches' glob refs/remotes/origin/* from a source not under refs/heads/.
Write them in bump-leg.py, as on_a_remote_branch is written twice. Or move both tools' copies into a module they both import. The docstring at :1039 says why none holds it today.
Keep the pull-request refspec and the refs/review/ kind carried, so the prune still keeps their refs.
Fix the docstring at :1064-1072.
Add rows for legs like tests/test_family_bump_fetch_refspecs.py's TAGS_UNDER_ORIGIN (end to end, both runs) and WHICH_CLAUSE (in process).
Related, not in scope here:_leg_fetch_refspecs still reads git config --list a line at a time (:1080), which is #946's U184 for legs (RV946's N7 on #946).
Verify:
On a leg whose only refspec is each of the five tag-capable refspecs above:
bump-leg.py --dry-run and the real run fetch with no note where the remote has a branch and a tag of one name;
both refuse, in bump-leg-commit-local-only's tag words, a commit only a tag of the remote reaches;
no ref of the leg moves.
_leg_fetch_refspecs leaves out each of the five and carries the pull-request refspec.
CLAIMED — lane openRepoShape-4, session 11c6c0ef-495a-4a05-94cf-811b7b0a1012@Eagle, 2026-10-20T10:36:26Z, for #1037
Logged in lanes/log/openRepoShape-4.md at f122e1b2f5d3c03d5c2df645f71f064024162bb8.
The three reads (lane-collision-protocol Rule 1):
1. existing `CLAIMED —` comments on opensoft/openRepoShape#1037:
none
2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1037"`, kept where the row or its body names `#1037`:
1027 family.py: `bump`'s fetch leaves out every refspec of the mount's whose source can name a tag, a pattern such as `refs/*` and a short name too, so a mirror in a folder, `+refs/*:refs/remotes/origin/all/*`, no longer fails the fetch on a branch and a tag of one name or pins a commit only a tag reaches (#1009) fix/1009-mirror-in-a-folder MERGED
3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1037` as a whole token:
none
Activity
family.py: `bump`'s fetch leaves out every refspec of the mount's who…
brettheap commentedon Oct 20, 2026
CLAIMED — lane openRepoShape-4, session 11c6c0ef-495a-4a05-94cf-811b7b0a1012@Eagle, 2026-10-20T10:36:26Z, for #1037
Logged in
lanes/log/openRepoShape-4.mdatf122e1b2f5d3c03d5c2df645f71f064024162bb8.The three reads (lane-collision-protocol Rule 1):
WIP merge of main eee089c into the #1037 WIP, as rebased locally to a…
bump-leg.py: the leg's fetch leaves out every refspec of the leg's ow…
shape_materialize.py: the fetch for a branch's answer leaves out ever…
shape_materialize.py and bump-leg.py: the fetch for a branch's answer…