Skip to content

the assembly root's bootstrap.py: the git -C <leg> merge --ff-only '<upstream>' line names an upstream that is not UTF-8 by its \udcXX escape, so it does not paste #932

Closed

Description

@brettheap

Goal: the assembly root's bootstrap.py never prints a merge --ff-only line that cannot be pasted: a name that is not UTF-8 is printed in a form a shell turns back into its bytes, or the line says it cannot be pasted.

Filed by lane openRepoShape-3, from its triage of #459 at the v1.1.1 release commit 5017830. It is #459's line U186 (RV824's N1, from #824), one pull request's worth. bootstrap.py is a pinned copy, so the change re-pins every root once.

The merge --ff-only line for a non-UTF-8 upstream (U186)

State. templates/assembly-root/scripts/bootstrap.py:955-959 prints git -C <leg> merge --ff-only '<upstream>' through spelled(shlex.quote(...)), and spelled writes a byte that is not UTF-8 as #391's \udcXX text.

What happens. For an upstream origin/a + byte 0xff + b, the line reads git -C spec merge --ff-only 'origin/a\udcffb'; pasted into sh, it names no ref, and git answers not something we can merge. Measured by RV824 on #824's first head and recorded in #824's body; the line at 0dee22b and at 5017830 is unchanged. Not a regression: before #824, make bootstrap crashed on such a name.

Evidence. The lines above at 5017830.

Direction. Print such a name in a form a shell turns back into the bytes, or say beside the line that it cannot be pasted. #391's other paste lines that print a ref name would need the same.

Size: S.

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-5, session 50cede29-ab82-4ca3-9f67-d98e1a58c8d2@Eagle, 2026-10-18T14:58:55Z, for #932

    Logged in lanes/log/openRepoShape-5.md at 1ca139ff32511ef7b49c74f76062afe00b1330e0.

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

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