You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
adopt-project.py: a --source or recorded clone directory this user cannot enter is cloned again or ends in a PermissionError traceback, and a --source too long to name is offered a URL that cannot clone #1003
Found by the independent review of PR #970 (#430 slice H): SHOULD-1 and NIT-4 (#970 issuecomment-6271331621). #970 leaves both alone on purpose. Neither is a regression: each behaves the same on main before #970.
(a) A source or recorded clone directory this user cannot enter is cloned again, or ends in a traceback.
_top_level (:2004) runs git_out(..., cwd=resolved) with nothing catching the error.
Measured on Linux as a non-root user, on 3.12 and under a 3.14 shim:
check, the recorded clone directory at mode 000, cloned: true: exit 2, after NOTE the plan's source.local_path, ..., is a clone plan made that is no longer whole (git finds no repository there), so its source.repository, testorg/Thing, is cloned again from GitHub and then cloning testorg/Thing .... One gh call is made.
The same with cloned: false, and plan --source <a repository directory at 000>:PermissionError: [Errno 13] Permission denied: '.../Thing', a traceback, exit 1.
Its remedy offers https://github.com/<300-byte owner>/Thing. That can never clone, because a GitHub owner is at most 39 characters (GITHUB_OWNER_MAX).
It also says it cannot tell whether the path or the GitHub repository is meant, when neither can exist.
Fix: in _source_there, offer the URL only when exc.errno != errno.ENAMETOOLONG.
Filed in v1.2.0 as #970's follow-up. Lane 3, the release owner, may place it otherwise.
CLAIMED — lane openRepoShape-4, session 11c6c0ef-495a-4a05-94cf-811b7b0a1012@Eagle, 2026-10-21T10:41:37Z, for #1003
Logged in lanes/log/openRepoShape-4.md at a093da93f5bc2f93791d40cb6b2739cfd87dfc94.
The three reads (lane-collision-protocol Rule 1):
1. existing `CLAIMED —` comments on opensoft/openRepoShape#1003:
none
2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1003"`, kept where the row or its body names `#1003`:
970 adopt-project.py: a `--source` or recorded source this user cannot reach is `source-unreadable`, never read as absent or sent to `gh`, and an unreadable leg or link place is named: no 3.12 traceback, no 3.14 `plan-source-gone` (part of #430) fix/430-h-adopt-unsearchable MERGED
3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1003` as a whole token:
none
Activity
brettheap commentedon Oct 21, 2026
CLAIMED — lane openRepoShape-4, session 11c6c0ef-495a-4a05-94cf-811b7b0a1012@Eagle, 2026-10-21T10:41:37Z, for #1003
Logged in
lanes/log/openRepoShape-4.mdata093da93f5bc2f93791d40cb6b2739cfd87dfc94.The three reads (lane-collision-protocol Rule 1):
adopt-project.py: an `org/repo` `--source` whose `stat` is refused is…