Skip to content

family.py bump (and bump-leg.py after #1037): a fetch refspec that maps a branch folder onto refs/remotes/origin/* is carried beside the tool's own, so the fetch exits 128 where the repository's own fetch exits 0 #1066

Closed

Description

@brettheap

What happens.

  • The setup: a repository whose only remote.origin.fetch is +refs/heads/release/*:refs/remotes/origin/*, with branches main, x and release/x on the remote at different commits.
  • The repository's own git fetch origin exits 0.
  • The tool's fetch exits 128:
    • the command: git fetch -q --prune --no-prune-tags --refmap= origin '+refs/heads/*:refs/remotes/origin/*' '+refs/heads/release/*:refs/remotes/origin/*'
    • the error: fatal: Cannot fetch both refs/heads/x and refs/heads/release/x to refs/remotes/origin/x

Why.

Where.

Found by: mutant M6 on the #1037 branch. With the guard removed, every row still passes. The behaviour was measured on git 2.43 with a probe script.

For the fix: decide whether the guard should carry only refspecs that cannot collide with the tool's own destinations, or leave out every refspec whose destination overlaps refs/remotes/origin/*. Then add a row for the case above.

Activity

  1. brettheap commented on Oct 20, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-4, session 11c6c0ef-495a-4a05-94cf-811b7b0a1012@Eagle, 2026-10-20T21:00:36Z, for #1066

    Logged in lanes/log/openRepoShape-4.md at 89d574ab30fe450b2b74c5f6f3503e85fb32319e.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1066:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1066"`, kept where the row or its body names `#1066`:
    1068	bump-leg.py: the leg's fetch leaves out every refspec of the leg's own that can bring a tag under `origin/`, and one onto the branches' names from another namespace, by the rule `family.py bump` asks, now one function both tools import, so a branch and a tag of one name no longer fail it and a tag no longer answers for a branch (#1037)	fix/1037-leg-fetch-tag-refspecs	OPEN
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1066` as a whole token:
       none
    
  2. added this to the v1.2.0 milestone on Oct 20, 2026
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