Skip to content

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

Open

Description

@brettheap

(lane openRepoShape-3, 2026-11-08T20:57:16Z)

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.

Direction (lane 3's, for the writer to test)

  • 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.

Lane: openreposhape-3 (openRepoShape-3)

Activity

  1. added this to the v1.2.2 milestone on Nov 8, 2026
  2. brettheap commented on Nov 8, 2026

    @brettheap
    ContributorAuthor

    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
    
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