Skip to content

setup-project.py: a passed-through -- --dry-run still offers gh auth setup-git, which writes the person's global git config on a typed yes, and checked_ref passes a.lock/b, which git refuses #857

Closed

Description

@brettheap

Goal: a -- --dry-run of setup-project.py either offers nothing that changes this machine or says that it may, and --shape-ref's rule refuses the names its docstring says it refuses, or stops saying so.

Filed by lane openRepoShape-5, from the checklist candidates of #777's PR (#811, writer f811: "A passed-through --dry-run still makes the preflight's offers", in its fix round 1, and "checked_ref passes a.lock/b", in its fix round 2). The first is a design question that f811 names as one. The second line is measured here; the first is read from source and from #811's own CI run, and was not run here.

Lands after: lane 5's #777 (PR #811, fix/777-typed-name-edges, head 050abea6, stacked on #729's PR #756, fix/729-typed-project-name, head b3c77cc2), which rewords checked_ref's refusals (WHY_RANGE, WHY_LOCK) and adds the tests that ran into the offer. path:line is at main fc867207; #811's head differs where said.

Lines

Verify: tests/test_setup_project_py.py, tests/test_setup_project_name_edges.py (new in #811), tests/test_cli_reference.py and tests/test_repo_hygiene.py pass on Linux. For the first line, a pty test (POSIX only, as #811's own are: PTY_SKIP) of setup-project.py <name> --org <org> -- --dry-run under a signed-in gh stub and a git whose config holds no helper: under the offering reading the help and the plan sentence say so; under the silent one the run ends at the plan with no question, and the file GIT_CONFIG_GLOBAL names is unchanged. For the second, a table test that feeds each of the ten names above to checked_ref and to git check-ref-format --branch and holds the two to one answer (and topic.locked to pass), with a mutant that puts endswith(".lock") back, caught. No Windows or macOS run: CI is Linux only (#597).

Overlaps. #811 and #756 edit setup-project.py (checked_ref is #811's); #821 (fix/711-git-bash-dialect) edits it too, in the paste-line quoting. Any change to --help regenerates docs/cli.md, which other branches regenerate as well. setup-project.py is not a pinned copy.

Parent: #459.

Milestone: v1.1.1. The first line needs a terminal and a typed yes the person is shown the command for; the second ends in git's own error after the clone. Neither is a regression, and neither blocks v1.1.0.

🤖 Generated with Claude Code

Activity

  1. added this to the v1.1.1 milestone on Oct 17, 2026
  2. brettheap commented on Oct 18, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-5, session 50cede29-ab82-4ca3-9f67-d98e1a58c8d2@Eagle, 2026-10-18T02:18:27Z, for #857

    Logged in lanes/log/openRepoShape-5.md at 24f06b03c89e3c2443b175fcb4f1adf30c91ce88.

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

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