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: read <org>/<repo> from every origin git accepts (a local path, a Windows backslash path, a trailing / or .git/) #521
Each of these origins is read wrongly or not at all. The source-name check then refuses the right source, or is skipped, and a mistyped --project plans with exit 0. One reading of origin covers all four.
From the v1.1.0 triage of the v1.0.0 known limits on #457. One pull request covers the lines below.
Lines
An origin that is a local path not ending <org>/<repo> is refused adopt-not-the-source even with the right --org. Where: adopt-project.py _remote_repository. Effort M; all. On main 3121945: The regex [:/]([^/:]+/[^/]+?)(?:\.git)?$ takes the last two directories of a path origin. (source)
An origin ending / or .git/ names no repository, so a mistyped --project plans with exit 0. Where: adopt-project.py _remote_repository. Effort S; all. On main 3121945: The regex anchors $ after [^/]+?, so a trailing / matches nothing. (source)
Each line above is marked → this issue on its tracking issue. Tick it there too when this closes.
The lines as written on the tracking issues
A clone of a local clone or mirror whose path does not end in <org>/<repo> is refused adopt-not-the-source even with the right --org. The remediation says why: the name was read from the last two directories of a path origin.
— #457, comment
_remote_repository reads org/repo only from /-separated URLs, so a Windows backslash path origin names no repository and is not compared.
— #457, comment
An origin with a trailing slash (https://github.com/acme/Atlas/, or .git/) names no repository (_remote_repository), so nothing is compared, and --project Atlsa --org acme plans with exit 0.
— #457, comment
CLAIMED — lane openRepoShape-1, session 300f8f46-004a-4e72-8587-4f192be2e108@Eagle, 2026-10-14T22:29:43Z, for #521
Logged in lanes/log/openRepoShape-1.md at 849f849a9b62f4580f4fde1c78ce56a98964d353.
The three reads (lane-collision-protocol Rule 1):
1. existing `CLAIMED —` comments on opensoft/openRepoShape#521:
none
2. `gh pr list --repo opensoft/openRepoShape --state all --search "#521"`, kept where the row or its body names `#521`:
none
3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `521` as a whole token:
none
Activity
brettheap commentedon Oct 14, 2026
CLAIMED — lane openRepoShape-1, session 300f8f46-004a-4e72-8587-4f192be2e108@Eagle, 2026-10-14T22:29:43Z, for #521
Logged in
lanes/log/openRepoShape-1.mdat849f849a9b62f4580f4fde1c78ce56a98964d353.The three reads (lane-collision-protocol Rule 1):
adopt-project.py and shape-doctor.py: both read `origin` with one fun…
Merge main 55faad2 into fix/doctor-members-siblings-note: #591's shap…
Merge origin/main 55faad2 (#591) into fix/540-pin-source-unread, so t…
Merge origin/main (396c0ff, #570) into fix/601-adopt-derived-id-label…
adopt-project.py: a plan's record that is a path `origin`'s last two …
adopt-project.py: `check` prints the rename-first remedy for a plan i…