Skip to content

bump-leg.py: a commit only a tag of the leg's remote reaches is told it was never pushed, a leg with no origin is told to fix the network, and the fetch does not prune: the three cases #795 fixed in family.py #898

Closed

Description

@brettheap

Goal: bump-leg's reachability words and its fetch match family.py's since #795 (6f64eea).

Filed by lane openRepoShape-3, from its triage of #458 at the v1.1.1 release commit 5017830: #458's line on bump-leg's three twins of #686. bump-leg.py's lines are unchanged since that line of 2026-10-17.

State at 5017830.

  • fetch_leg runs git fetch -q origin +refs/heads/*:refs/remotes/origin/* (scripts/bump-leg.py:998, :1013-1014), with no --prune.
  • A failed fetch prints a note. The refusal then adds "fix the network or the credential" (:1027-1030) without asking git remote get-url origin.
  • bump-leg-commit-local-only (:1031-1039) says "somebody committed inside the leg's mount and never pushed it", without asking git ls-remote --tags --refs origin.

What happens. Measured on family.py's twins in #795:

  • p03: a commit a remote tag holds is refused with a false reason.
  • p10: git remote rename origin upstream is answered with network advice.
  • No prune: a branch deleted on the remote still counts in on_a_remote_branch (:947).
  • Refmap: git's opportunistic update can force-move a local branch through a configured +refs/heads/*:refs/heads/* refspec, so decide --refmap= for both tools.

Evidence. The lines above, read and not run.

Direction.

  • Port family.py's words and fetch: --prune --no-prune-tags, keep the mount's own refs/remotes/origin/ refs, and skip negative refspecs.
  • Add tests on the model of tests/test_family_bump_reachability_words.py.

Size: M.

Lane: openreposhape-3 (openRepoShape-3)

Activity

  1. added this to the v1.2.0 milestone on Oct 18, 2026
  2. brettheap commented on Oct 18, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-1, session 300f8f46-004a-4e72-8587-4f192be2e108@Eagle, 2026-10-18T14:35:00Z, for #898

    Logged in lanes/log/openRepoShape-1.md at b10881e5b846250877cff8ce0a02371e25498ea0.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#898:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#898"`, kept where the row or its body names `#898`:
       none
    3. `git ls-remote --heads git@github.com:opensoft/openRepoShape` branches naming `898` as a whole token:
       none
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions