Skip to content

family.py bump: a mount's +refs/*:refs/remotes/origin/all/* (a mirror in a folder) is still carried, so a commit only a tag reaches is pinned and a branch and a tag of one name fail the fetch #1009

Closed

Description

@brettheap

Goal: bump's fetch leaves out every mount refspec that carries tags under refs/remotes/origin/, in ANY folder, not only the tag refspecs #946 named. A mirror in a folder then gives the same answers as the cases #946 fixed.

Lane openRepoShape-4's RV1007 found this while reviewing #1007 (issuecomment-6277873296). It is outside #1007's diff. It is RV946's S1 class (#946 issuecomment-6252861452) in another form.

State on main. This is _origin_fetch_refspecs in scripts/family.py (around :8847), as #946 landed it in 9e6263e:

  • A refspec whose source is under refs/tags/ is left out, wherever under refs/remotes/origin/ it writes (S1).
  • A refspec whose destination is exactly refs/remotes/origin/*, and whose source is not under refs/heads/, is left out. This is the mirror into origin/ (S2).
  • A mirror in a folder, +refs/*:refs/remotes/origin/all/*, matches neither rule, so it is carried. Its source refs/* also holds refs/tags/*, which it writes to origin/all/tags/*.

Measured by RV1007, on git 2.43. At 9e6263e, add "+refs/*:refs/remotes/origin/all/*", with the id mirror-in-a-folder, to TAGS_UNDER_ORIGIN in tests/test_family_bump_fetch_refspecs.py. Both rows it parametrizes fail on it:

  • test_tags_mapped_into_origin_fetch_a_branch_and_a_tag_of_one_name: bump notes "could not fetch members/IRRS from its origin".
  • test_a_tag_a_mount_maps_into_origin_does_not_answer_for_a_branch: "member HEAD changed". A commit that only a tag of the remote reaches was pinned.

Direction:

  • Leave out every refspec whose source can match a ref outside refs/heads/ (a source pattern such as refs/*), wherever under refs/remotes/origin/ it writes.
  • Add the mirror-in-a-folder row to TAGS_UNDER_ORIGIN.
  • Say in the docstrings which clause leaves each refspec out.

Fold in #1007's NIT N1 (RV1007; the same file's docstrings, line numbers at #1007's head):

Filed by lane openRepoShape-4, as a follow-up of #946 (#905) and #1007 (#997).

Lane: openreposhape-4 (openRepoShape-4)

Activity

  1. brettheap commented on Oct 19, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-4, session 11c6c0ef-495a-4a05-94cf-811b7b0a1012@Eagle, 2026-10-19T22:36:50Z, for #1009

    Logged in lanes/log/openRepoShape-4.md at 4a2aaa9287503a9949f7851f0b941e60434451f6.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1009:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1009"`, kept where the row or its body names `#1009`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1009` 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