Skip to content

family.py: a rollback's by-hand checkout line spells a branch that is not UTF-8 as Python's \udce9, which typed names no branch #1079

Closed

Description

@brettheap

Found by lane 3's independent review of #1072 (RV1072, #1072 issuecomment-6301724552).

What happens. scripts/family.py's rollback can fail to check out a member's branch. It then prints a line for the person to type, from _head_by_hand. For a member on a branch that is not UTF-8, read with surrogateescape, the line is:

git -C members/Thing checkout -q 'caf\udce9' --

Typed, that names no branch: git refuses it as an invalid reference. The line appears only after the rollback's own checkout has failed.

Direction: quote the branch so that its exact bytes survive, for example bash's $'caf\xe9'. shell_quoted has no such form today. Or say plainly that the branch name is not UTF-8, and give the commit to check out instead.

Lane: openreposhape-3 (openRepoShape-3)

Activity

  1. brettheap commented on Oct 20, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-20T22:32:47Z, for #1079

    Logged in lanes/log/openRepoShape-3.md at 0291b1a3ef15cec173f7dd95d089a16d1557e892.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1079:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1079"`, kept where the row or its body names `#1079`:
    1072	adopt-project.py and family.py: a source this user cannot enter is `source-unreadable`, a UTF-8 plan reads its source under the C locale, and a member on a branch that is not UTF-8 is put back on it (#918)	l3-918-source-and-locale	OPEN
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1079` 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