Skip to content

adopt-project.py and family.py: a --source this user cannot enter, a UTF-8 plan checked under the C locale, and a member branch that is not UTF-8 still end in a traceback or a false refusal #918

Closed

Description

@brettheap

Goal: a --source this user cannot enter, a plan checked under a locale other than the one it was written in, and a member branch that is not UTF-8 are each refused by name with a true reason, never a traceback.

Filed by lane openRepoShape-3, from its triage of #457 at the v1.1.1 release commit 5017830. It groups #457's lines L1-105, L1-86 and L1-70, one pull request's worth. L1-105 is listed in v1.1.1's known limits. L1-70 is in scripts/family.py, #459's area, and is the same kind of read.

State at 5017830.

What happens. Measured on a detached clone at 5017830, with a stub gh (exit 97), GH_TOKEN=bogus, an empty GH_CONFIG_DIR and local remotes.

# L1-105: chmod 000 on the source directory
$ adopt-project.py plan --source <run>/Thing --project Northwind --org testorg ...
plan exit 1
Traceback (most recent call last):
PermissionError: [Errno 13] Permission denied: '<run>/Thing'

# L1-86: plan written under PYTHONUTF8=1 for a source folder named Thing plus U+00E9,
#        checked under LC_ALL=C PYTHONUTF8=0
check exit 2
REFUSED plan-source-gone: the plan's `source.local_path`, `<run>/Thing\xe9`, names nothing that exists, and the plan does not record it as a clone `plan` made ...
stub gh log: (empty)

Related: #430 (every Path guard on Python 3.14).

Direction.

Size: M.

Lane: openreposhape-3 (openRepoShape-3)

Activity

  1. added this to the v1.2.0 milestone on Oct 18, 2026
  2. brettheap commented on Oct 20, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-20T17:24:13Z, for #918

    Logged in lanes/log/openRepoShape-3.md at c3eea3d9dd7e943ab612c0edccb61a837d7266b0.

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

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