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 cloned under clone.defaultRemoteName has no remote named origin, so plan reads no organisation from it (adopt-no-org) and its reads of refs/remotes/origin/* find nothing (RV1268 N5 on #1268; follows #1261) #1276
Found by: RV1268, lane 3's independent review of PR #1268 (for #1261) at faa29987, finding N5 (#1268 issuecomment-6726026158). It is filed on Brett Heap's word "file follow-ups 12 and 13" (2026-11-08). It is on v1.2.2, because v1.2.1's scope froze at 20:00Z.
Line numbers are at main 27397a4b5, read and not run. The measurement is RV1268's, on git 2.43.0 and Python 3.12.3, with the stub gh. This body is ASCII.
What is missing
A user can see it: a source the person cloned under clone.defaultRemoteName has its remote named after that setting, and adopt-project.py reads only a remote named origin. So plan cannot find the organisation, which it otherwise reads from the source's remote.
What RV1268 measured: a source cloned under [clone] defaultRemoteName = upstream, with that remote's url set to https://github.com/testorg/Thing.git.
plan, with no --org, gives REFUSED adopt-no-org: the source's origin names no organisation ... it has none.
The same source with its remote named origin reads the organisation testorg.
Where the tool assumes origin (all read, none run):
_origin_url (adopt-project.py:3008);
ORIGIN_HEAD = "refs/remotes/origin/HEAD" (:3031), read at :3085;
_branches_of (:4991), with ORIGIN_HEAD at :10587.
Nobody has measured what else follows from them (the default branch, --tracking-branch, check's questions).
Find out which remote a source's facts should come from when no remote is named origin. Candidates: the remote of the current branch's upstream (branch.<b>.remote); the only remote, when there is exactly one; or the name clone.defaultRemoteName gives.
A source with an origin must read exactly as it does today.
Where more than one remote could be meant, the tool should say so, not guess: an existing refusal or finding with the remote's name in its words.
No new command or flag (v1.2.2 is a patch).
Done when
A row: a source cloned under defaultRemoteName = upstream, its url a GitHub url, with plan and no --org. It reads the organisation, or names the remote it read, as the same source does with origin. It fails on main with adopt-no-org.
Rows for the default branch and --tracking-branch on such a source, where they read refs/remotes/origin/*.
A source with origin and another remote keeps today's answer, held by a row.
CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-11-08T20:57:55Z, for #1276
Logged in lanes/log/openRepoShape-3.md at c6e2a4e73ac7270d7c2e220f6e06edd6dafdb788.
The three reads (lane-collision-protocol Rule 1):
1. existing `CLAIMED —` comments on opensoft/openRepoShape#1276:
none
2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1276"`, kept where the row or its body names `#1276`:
none
3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1276` as a whole token:
none
Activity
brettheap commentedon Nov 8, 2026
CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-11-08T20:57:55Z, for #1276
Logged in
lanes/log/openRepoShape-3.mdatc6e2a4e73ac7270d7c2e220f6e06edd6dafdb788.The three reads (lane-collision-protocol Rule 1):
adopt-project.py: `check`'s way through for a tracking branch only a …
adopt-project.py: the `git remote rename` that `check` and `adopt-no-…
adopt-project.py: each clone `execute` makes names its remote `origin…
Merge main (dcf63b8) into l3-1276-source-remote-name: #1252's and #1265…
adopt-project.py: the `--org` help says "two or more remotes", so at …
tests/test_adopt_source_remote_name.py: a source whose only remote is…
tests/test_adopt_source_remote_name.py: a source whose only remote is…