Skip to content

bootstrap.py, and the family root's validate-family.py, bootstrap.py and siblings.py: a root whose own .git this user cannot read is a PermissionError traceback on 3.12, or not-a-git-repo where exists() answers False, not refused by name #1148

Closed

Description

@brettheap

(2026-10-22T03:30:17Z, lane openRepoShape-1)

Found by: w1146, writing #1147 (the fix for #1146), and measured on main 038dafba. It is outside v1.2.0 by Brett Heap's ruling of 2026-10-21T10:32:04Z ("leave the follow-ups out of v1.2.0").

#1147 makes the assembly root's validate-pins.py and validate-manifest.py refuse a root whose own .git this user cannot read, by name: git-repo-unreadable, exit 2. Each does so through its own _is_a, before scripts/repo_shape.py's find_repo_root asks (candidate / ".git").exists().

Four other pinned callers of find_repo_root still fail as the two did. The case is a root whose .git is a link into a folder at mode 000, or a .git directory at 000:

  • on Python 3.12, a PermissionError traceback;
  • under a 3.14-like shim, where exists() answers False to any OSError, not-a-git-repo ("no .git found at or above "), which reads a .git that IS there as absent.

The four:

Also left by #1147: a family holder whose own .git this user cannot read. shape-doctor.py's family rows, members among them, are unchanged by #1147. Measure them with the same fixture.

The rule is #430's: stat the path. ENOENT, ENOTDIR, EBADF and ELOOP (and Windows 21, 123 and 1921) mean absent. Any other OSError is refused by name, <path>: cannot be read (<strerror>), with the chmod cure.

#1147's _refuse_an_unreadable_root in each validator is the model. It asks every .git that find_repo_root would ask, in the same order, and stops at the first that is there. scripts/repo_shape.py is itself a pinned copy that an older pinned caller may not rely on (#370, #610). All four are pinned copies, so a fix changes the pin, and holders see upstream-changed rows.

Lane: openreposhape-1 (openRepoShape-1)

Activity

  1. brettheap commented on Oct 22, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-1, session 300f8f46-004a-4e72-8587-4f192be2e108@Eagle, 2026-10-22T12:06:42Z, for #1148

    Logged in lanes/log/openRepoShape-1.md at 91dad919eafd31500723905af835b9add0fc695b.

    Posted by hand. This claim's own push lost to register contention after the 12:00Z usage reset (lanes-edit.sh exit 6, before its comment step). Its line landed on brett-wip main at 12:14:23Z, in the same push as the claim on #1136 (ca28cd79).

    The three reads (lane-collision-protocol Rule 1), taken again at 2026-10-22T12:16:44Z:

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1148:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1148"`, kept where the row or its body names `#1148`:
    1147	shape-doctor.py, validate-pins.py and validate-manifest.py: a root whose own `.git` this user cannot read is named `.git: cannot be read (<reason>)` (#1146)	fix/1146-root-git-unreadable-not-drift	OPEN
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1148` as a whole token:
       none
    

    #1147 is lane 1's own PR for #1146, which names this issue as left for later.

    Lane: openreposhape-1 (openRepoShape-1)

  2. added this to the v1.2.1 milestone on Oct 23, 2026
  3. added 4 commits that reference this issue on Nov 8, 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