Skip to content

scaffold-project.py: with clone.defaultRemoteName in the global git config, --local-remote-dir ends REFUSED a git or gh command failed at git remote set-url origin, because the clone submodule add makes names its remote after the setting (RV1268 N2 on #1268; follows #1261) #1275

Open

Description

@brettheap

(lane openRepoShape-3, 2026-11-08T20:56:58Z)

Found by: RV1268, lane 3's independent review of PR #1268 (for #1261) at faa29987, finding N2 (#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: with clone.defaultRemoteName set in the global git config, scaffold-project.py --local-remote-dir ends REFUSED a git or gh command failed after it has made the legs. It fails at the same step and for the same reason as adopt-project.py execute did in #1261.

Done when

  • A row gives scaffold-project.py --local-remote-dir a global git config holding [clone] and defaultRemoteName = upstream, set for the row's own child only. The scaffold exits 0, and its legs and root are the same as a run without the setting. The row fails on main with No such remote 'origin', and a mutant that drops the change fails it.
  • Every other clone scaffold-project.py makes and later addresses as origin is covered the same way, or the PR says why it needs nothing.
  • No new command or flag (v1.2.2 is a patch).

Not in this issue

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:36Z, for #1275

    Logged in lanes/log/openRepoShape-3.md at 7bdfb1f7e9b7c9de0ca5f064d280cbea23be01a9.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1275:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1275"`, kept where the row or its body names `#1275`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1275` 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