Skip to content

family.py: a failed bump's by-hand lines quote a leg mounted at a path that is not UTF-8 as Python's \udcXX, so the typed git -C <member>/<leg> and submodule update -- <leg> name no path #1086

Closed

Description

@brettheap

Found by lane 3's independent review of #1084 (RV1084, #1084 issuecomment-6303644023). #1084 is #1079's fix, for the branch only.

What happens. When a family.py bump fails, it prints lines for the person to type. A leg's path inside a member is read from the member's ls-files -z with surrogateescape (family.py:7991 at #1084's head). It then reaches shlex.quote at :8277 and :8279, and through _head_by_hand at :8280 and :7787. For a leg mounted at a path that is not UTF-8, the stream prints the path with Python's \udcXX escapes. So the typed git -C <member>/<leg> ... and git submodule update -- <leg> name no path.

Why #1084's form does not carry over. #1084 spells a branch name that is not UTF-8 as "$(printf '<octal escapes>')". A path can end in a newline, which $(...) strips, and dash has no $'...'. So a path needs its own design. Some options:

  • a form that keeps a trailing newline, such as "$(printf '...x')" followed by stripping the x in the shell;
  • a line that does not type the path;
  • saying plainly that the path is not UTF-8.

The member path itself comes from family.yaml, which is UTF-8 text, so it is not affected.

Lane: openreposhape-3 (openRepoShape-3)

Activity

  1. brettheap commented on Oct 21, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-21T10:37:23Z, for #1086

    Logged in lanes/log/openRepoShape-3.md at 594c9a27b6ff0435a5d3ada166bd738e20e90f7d.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1086:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1086"`, kept where the row or its body names `#1086`:
    1084	family.py: the by-hand checkout line a failed rollback prints names a branch that is not UTF-8 by its exact bytes, as `"$(printf 'caf\\351')"`, not as `'caf\\udce9'`, which typed names no branch (#1079)	l3-1079-by-hand-branch-bytes	MERGED
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1086` as a whole token:
       none
    
  2. added this to the v1.2.1 milestone on Oct 23, 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