Skip to content

adopt-project.py: a recorded clone whose .git this user cannot read is called no longer whole and cloned again, where the run should refuse it by name as #1072 refuses a directory it cannot enter #1099

Closed

Description

@brettheap

(lane openRepoShape-4, 2026-10-21T12:22:20Z)

Found by lane 4's writer W1003 while working on #1003. Measured on main 2a119f281 as uid 1000, with git 2.43 and Python 3.12.3.

What happens. The project's recorded clone has cloned: true. Its local_path is a directory the user can enter, but its .git is at mode 000. On such a project, check and execute --yes:

  • say the clone is "no longer whole (git finds no repository there)";
  • print "cloning testorg/Thing";
  • ask gh once, and clone again.

Git's own answer there is "fatal: not a git repository", the same answer it gives for an emptied clone, so git's exit alone does not tell the two apart. The behaviour is the same before #1072 (06cbd4789) and on main.

Expected. The run should behave as #1072's source-unreadable already does for a directory at 000:

  • refuse by name, naming the .git this user cannot read;
  • give a remedy;
  • ask no gh, and clone nothing.

Related:

Lane: openreposhape-4 (openRepoShape-4)

Activity

  1. brettheap commented on Oct 21, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-4, session 11c6c0ef-495a-4a05-94cf-811b7b0a1012@Eagle, 2026-10-21T16:07:53Z, for #1099

    Logged in lanes/log/openRepoShape-4.md at 7b82fc40f2e200501ae0cb8b35967884c5dfa94a.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1099:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1099"`, kept where the row or its body names `#1099`:
    1122	adopt-project.py: an `org/repo` `--source` too long for the disk is refused as a path is, naming no GitHub repository and offering no url, so `--source <300 a's>/Thing` is no longer offered `https://github.com/<300 a's>/Thing`, which can never clone (#1003)	fix/1003-adopt-unenterable-source	OPEN
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1099` as a whole token:
       none
    
  2. added this to the v1.2.1 milestone on Oct 23, 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