Skip to content

adopt-project.py: read <org>/<repo> from every origin git accepts (a local path, a Windows backslash path, a trailing / or .git/) #521

Closed

Description

@brettheap

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

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

Activity

  1. added this to the v1.1.0 milestone on Oct 14, 2026
  2. brettheap commented on Oct 14, 2026

    @brettheap
    ContributorAuthor

    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
    
  3. added 5 commits that reference this issue on Oct 15, 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