Skip to content

family.py init --dry-run and scaffold-project.py --dry-run exit 0 without asking whether the remotes already exist #537

Closed

Description

@brettheap

Both real runs then refuse an existing remote: family.py init after leaving an empty folder, and the scaffold only after the yes. The dry run should ask the same question first.

From the v1.1.0 triage of the v1.0.0 known limits on #459. One pull request covers the lines below.

Lines

  • family.py init --dry-run exits 0 before the existing-remote check; the real run refuses, leaving an empty folder. Where: scripts/family.py cmd_init (:1722-1727). Effort S; all. On main 3121945: if args.dry_run: return 0 still precedes _prepare_landing_dir and _checked_reuse; uncommon and recoverable. (source)
  • scaffold-project.py --dry-run never asks whether remotes exist; scaffold-remote-exists appears only after the yes. Where: scaffold-project.py :1482 vs _reusable_remotes (:1502). Effort S; all. On main 3121945: if args.dry_run still returns before _reusable_remotes; the scaffold twin of the family.py init --dry-run line above. (source)

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

AT-family N1: family.py init --dry-run returns (scripts/family.py:1444-1446) before the existing-repository check (_checked_reuse, :1449), so against a holder repository that already exists the dry run exits 0, and the real run then refuses family-remote-exists, exit 2, after _prepare_landing_dir (:1448) has left an empty <into>/<Family>/ folder.
— #459, body

scaffold-project.py --dry-run never asks whether the remotes already exist, so scaffold-remote-exists appears only after the yes. Nothing has been created by then.
— #459, 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-2, session 81650e29-c906-4fe8-96c9-55580bfe0c44@Eagle, 2026-10-14T22:30:36Z, for #537

    Logged in lanes/log/openRepoShape-2.md at e40595f3a4129abaee8ef7f76dbc1e4926dc3bd7.

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

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