Repository navigation
adopt-project.py and shape-doctor.py: one reading of origin, so a local clone's right --org is no longer refused, a url ending / names its repository, and the doctor's adoption line asks for --org wherever plan reads none (#521, #427) - #591
Conversation
…wever it ends and no repository for a path in either separator, and an organisation `plan` read from it is named by where it came from, so a local clone's right `--org` is no longer refused `adopt-not-the-source` and a mistyped `--project` no longer plans with exit 0 (#521, #427) #521. `_remote_repository` read `<org>/<repo>` with one regex, `[:/]([^/:]+/[^/]+?)(?:\.git)?$`. A url ending `/` or `.git/` named nothing, so #499's source check compared nothing and `--project Atlsa` planned with exit 0. A path named its last two directories, so a clone of `/srv/clones/Atlas.git` was `clones/Atlas` and the right `--org acme` was refused `adopt-not-the-source` and sent to `--org clones`; the same path written with backslashes named nothing and was not compared. Now `_url_repository` reads the path of a url after its host (scheme url, scp `[user@]host:`, bracketed `[::1]:`), drops trailing `/` and `.git`, and takes the last two segments. A filesystem path, in any separator, or a `file://` url, names no repository: it says nothing of the repository on GitHub that `execute` acts on without `--local-remote-dir`. `plan` prints a NOTE that `--org` and `--project` were not compared with it and names the repository `execute` will act on; a path gives no default organisation (`adopt-no-org`, whose sentence now says so). `_origin_url` is the one read of the url, used by both. The path branch of `_rename_first` and `_own_name_remediation` (#513's NIT-3) is gone, since no repository is read from a path any more. #427. With no `--org`, the organisation read from the url is held to `checked_value` as `--org (not given, so the organisation of the source's `origin`)` (or of `--source`), and its remediation first says to pass `--org <org>`. The refusal and its exit code stay. `adopt-not-the-source` names an organisation nobody passed the same way. Tests: tests/test_adopt_origin_repository.py (28, each failing on bfed143); the #499 and #292 tests whose expectations this reverses are updated, and test_adopt_split_branch.py's GitHub stand-in is a url `origin` fetched from a bare by path. Lane: openreposhape-1 (openRepoShape-1) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in main from bfed143 to 64fc9a8, including b4c1f50 (#553, #545), whose shape-doctor.py copies the `origin` regex this branch replaces, and 9f80939 (#567, #529), which changes adopt-project.py and tests/test_adopt_git_reads.py. git merge-tree of 182389e with 64fc9a8 is clean (tree 592d9aa); the doctor follows in the next commit. Lane: openreposhape-1 (openRepoShape-1) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ction in scripts/repo_shape.py, so the doctor's adoption line asks for `--org` for a path `origin` and not for a url ending `/`, as `plan` now reads them (#521, #545) r521's F1. #553 (b4c1f50) gave shape-doctor.py's `origin_org` a copy of the regex this branch replaced in adopt-project.py, held to it by `test_the_adoption_line_names_an_org_only_where_plan_reads_none`. Merged with this branch, the copy and `plan` disagreed: `[trailing-slash]` failed, and for a repository whose `origin` is `/srv/git/acme/Atlas.git` the doctor's line carried no `--org`, so pasted it was refused `adopt-no-org`. `FILE_URL_RE`, `SCP_BRACKETED_HOST_RE`, `origin_is_a_path` and `url_repository` move from adopt-project.py into scripts/repo_shape.py as public names, and adopt-project.py and shape-doctor.py import them; the doctor's `_ORIGIN_REPOSITORY_RE` is gone. Neither tool is copied into a project, and no template file imports the new names, so #536's kept-helper rule is not touched. Tests: `ORIGIN_ORGS` expects `opensoft` for `[trailing-slash]` and adds `[posix-path]` and `[file-url]`, both None; the doctor's docstrings name the path case. tests/test_adopt_origin_repository.py gives the remote name one constant (r521's F3). Lane: openreposhape-1 (openRepoShape-1) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 1 day and 8 hours by commenting |
Reviewer's GuideThe PR introduces a single shared origin parser for adoption and doctor workflows: URL origins now consistently resolve to their final org/repo, filesystem and file URL origins resolve to no GitHub repository, and plan/doctor diagnostics, organization inference, source comparisons, remediation, and tests are updated to match. Sequence diagram for plan handling a local-path originsequenceDiagram
participant Plan as adopt-project.py plan
participant Git as git remote get-url origin
participant Parser as repo_shape.url_repository
participant Report as Plan diagnostics
Plan->>Git: remote get-url origin
Git-->>Plan: filesystem path
Plan->>Parser: url_repository(path)
Parser-->>Plan: None
Plan->>Report: _planned_org
Report-->>Plan: adopt-no-org if --org is absent
Plan->>Report: _path_origin_notes
Report-->>Plan: NOTE that --org and --project were not compared
Sequence diagram for doctor adoption-line origin handlingsequenceDiagram
participant Doctor as shape-doctor.py
participant Git as git remote get-url origin
participant Parser as repo_shape.url_repository
Doctor->>Git: remote get-url origin
Git-->>Doctor: URL or path
Doctor->>Parser: url_repository(origin)
alt repository found
Parser-->>Doctor: org/repo
Doctor-->>Doctor: origin_org returns org
Doctor-->>Doctor: adoption line omits --org
else path or no repository
Parser-->>Doctor: None
Doctor-->>Doctor: adoption line ends --org <your-org>
end
Flow diagram for origin classification and repository inferenceflowchart TD
Start["Read origin"] --> Path{"origin_is_a_path?"}
Path -->|"yes: filesystem or file://"| None["No GitHub repository or organisation"]
None --> PlanNote["plan: do not compare --org/--project; print NOTE"]
None --> OrgPrompt["plan/doctor: require --org"]
Path -->|"no: URL or scp-style origin"| Normalize["Strip trailing / and one .git"]
Normalize --> Pair["Take final org/repo"]
Pair --> Compare["plan: infer organisation and compare source"]
Pair --> DoctorOrg["doctor: omit --org from adoption line"]
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
…e-doctor.py and test lines, a clean merge Main moved from 62ef256 to 55faad2 under this branch, four commits: #587 (22eacee), #615 (77bb5f0), #584 (2b6dbb7) and #591 (55faad2, for #521 and #427). #591 changed `shape-doctor.py` (the `origin` reading, `:363-369` and `:7339+`) and `tests/test_shape_doctor.py` (`:9122+`), the two files this branch changes, so ruling 27 asks for this merge before it lands. The other three touch neither file. No conflict: this branch's hunks are in `members_verdict` (`shape-doctor.py:6975-6992` and `:7163-7183`) and after `test_a_sibling_with_this_members_id_but_another_origin_is_not_counted` in the tests, and #591's are far from both. Nothing was resolved by hand. Lane: openreposhape-4 (openRepoShape-4) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…his PR's head carries the newest main before rv540c's fix round (#540, #451, #450) #591 is the only commit main gained since d62a03c (GitHub's update-branch merge of main 77bb5f0, #574, #584, #587, #615): adopt-project.py and shape-doctor.py read `origin` one way (#521, #427). It touches this PR's adopt-project.py, in the `_checked_plan_inputs` neighbourhood and elsewhere, and no other file this PR changes: git merge-tree --write-tree says the merge is clean, so this commit holds the textual resolution only (none was needed) and every change of behaviour comes after it. #589 (#449) and #582 stay as f540n merged them. Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ix/585-git-bash-windows: README's step 3 keeps #598's pipx-or-uv paragraph and this branch's "in Git Bash it can take none" inside its 1449-line cap, the handbook's consent rule keeps both, and the seven markers move to the merged README (#585) Main moved from 77bb5f0 to 396c0ff: 55faad2 (#591), fbbbc8d (#572), 7fdec0a (#624), 3fb21d9 (#598, lane 3's #595) and 396c0ff (#570). Only #598 touches this branch's files: README step 3's install.sh paragraph, the handbook's masthead and `start`, install.sh and tests/test_install_sh.py, and it adds tests/test_install_sh_filter_repo.py. Two files conflicted. README.md, one region: step 3's install.sh paragraph. #598 rewrote it for uv and the closing readinesses; this branch had added "in Git Bash it can take none" after "each behind a typed `yes` at your terminal". Side by side that is nine lines where both have eight, and README is at its cap (1422 + 5 for 550.txt + 22 for 564.txt = 1449). The cap is not raised. Two rewordings fit it, and no fact is dropped: - "`install.sh` is attached to every release and installs the newest, with no `gh` and no login." became "`install.sh`, attached to every release, installs the newest with no `gh` and no login." - #598's "`install.sh` never runs `sudo`;" became "It never runs `sudo` itself;". "It" is install.sh, the subject of the sentence before it, and "itself" is #564's own word for the contrast with the preflight. #598's "It installs `git-filter-repo` with `pipx`, or `uv`, where it can, or prints the command, runs `openRepoShape --preflight`, and says last if the machine is ready to adopt or only to scaffold" is word for word, and so is this branch's "; in Git Bash it can take none". The eight lines rewrap at 80 characters at most, as 78 README lines already are. The Git Bash clause is still true after #598. Under `curl ... | bash`, install.sh's `[ -t 0 ] || exec </dev/null` (install.sh:342, which #598 does not touch) leaves the preflight no terminal on stdin. Under Git Bash setup-project.py runs on native Windows Python, where `open_terminal()` returns None (`os.name == "nt"`), so `can_ask()` is False, and `offer()` takes no `yes`. #598 changes what install.sh does before and after the preflight, not how the preflight reads an answer. docs/handbook.html, eight regions: - The consent rules' install.sh item keeps #598's text, "installs `git-filter-repo` with `pipx` or `uv` where one is there, and itself never runs `sudo` or installs either of them", and then this branch's clause, word for word: "; in Git Bash it can take no `yes`, so it installs nothing." - The seven markers for README.md section "Starting a project in a new organisation" (this branch's 278a1947 against #598's d1666fa6) each record badbb6b273215042ba0e8ae167fd760dc25430ee, the merged section's hash from tests/test_repo_hygiene.py's own readme_segments and readme_fingerprint. All 23 markers match the merged README. The masthead merged as text: this branch's "macOS, Linux, WSL2, Git Bash" heading and PowerShell line, beside #598's "where `pipx` or `uv` can install it ... and whether the machine is ready to adopt or only to scaffold". The `start` step-3 paragraph is #598's; it is `data-platform="linux mac wsl"`, as before. tests/test_install_sh.py merged as text. #598's hunks (`no_pipx` and `no_pipx_but_apt`'s printed commands, the docstring, and the line before the printed command, which now starts "there is neither pipx nor uv") sit beside this branch's `bash_path` in `present_on_path` and in the preflight line of the same test. tests/test_install_sh_filter_repo.py comes in unchanged. It builds on `Net`, whose `fake` this branch writes as LF bytes, and it is not added to the tests-git-bash job. Against main this merge differs only in this branch's six files: .github/workflows/tests.yml, README.md, docs/handbook.html, tests/conftest.py, tests/test_install_sh.py and tests/test_openreposhape_command.py (436+, 147-). `git merge-tree --write-tree HEAD origin/main` gives this commit's own tree. tests/test_repo_hygiene.py, tests/test_readme_sections.py and tests/test_readme_windows_quoting_sentence.py: 144 passed on the merged tree. Lane: openreposhape-5 (openRepoShape-5) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s, so PR #620 merges cleanly (#601) Main moved through #566, #582, #584, #591, #572 and #570 since this branch's base, 2989b4c. One hunk in adopt-project.py conflicted, in `_checked_plan_inputs`: this branch replaced the inline `adopt-bad-id` check with `_refuse_bad_id`, and #591 (#427, #521) replaced the inline organisation block just below it with `_planned_org` and `org_given`. The resolution keeps both: `_refuse_bad_id(args.id, args.project, id_passed)` where the id is checked, and main's `org_given = bool(args.org)` and `_planned_org(...)` where the organisation is read. Everything else, the two new test files' hunks included, merged on its own. Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… the Free-plan hint now named by the root is tested on main's tools (#602) This branch was made from 2989b4c. Main has moved through #582, #584, #591, #569, #572, #570 and the rest since, and changed adopt-project.py and scaffold-project.py. The merge is clean, with no hunk of main's inside this PR's: main's adopt hunks sit away from `_create_leg_remotes` and the new `_free_plan_hint_by_the_root` and `_root_visibility`, and its scaffold hunks (shell_line, pin_source_path, the `--pin-source` text, the NEXT STEPS block) sit away from `_private_leg_note`. `import json`, `run`, `CommandFailed` and `VISIBILITY_CHOICES` are still what adopt-project.py imports, and scripts/repo_shape.py's `free_plan_secret_hint` and `FREE_PLAN_HINT` are byte for byte as they were, so nothing needs re-pinning. Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…es in Git for Windows' own bash, so README and the handbook say Git Bash runs the one-line install, tested in CI but for a typed yes, which it cannot take there (#585) (#596) **Fix round 7: main after #598 (3fb21d9) (head 52524fe).** Lane 3's #598 (#595) landed on main as 3fb21d9. It rewrote README step 3's `install.sh` paragraph and the handbook's masthead and `start` for `uv`, and for the two readinesses install.sh now ends with. It also changed `install.sh` and `tests/test_install_sh.py`, and added `tests/test_install_sh_filter_repo.py`. One merge commit, **52524fe3**, merges main 396c0ff: 55faad2 (#591), fbbbc8d (#572), 7fdec0a (#624), 3fb21d9 (#598) and 396c0ff (#570). No other change. - **Conflicts.** README.md had 1 region (step 3's `install.sh` paragraph). docs/handbook.html had 8: the consent rules' `install.sh` item and the seven § Starting markers. `tests/test_install_sh.py` merged as text, and so did the handbook's masthead and `start`. - **The head holds all of main.** `git merge-tree --write-tree 52524fe origin/main` gives 52524fe's own tree, 6d8ffea. `git diff --stat origin/main 52524fe` names only this PR's six files (436+, 147-). **The README and handbook resolution with #598 (52524fe).** - **README, before.** This PR (4c3b72a) had added "; in Git Bash it can take none" after step 3's "each behind a typed `yes` at your terminal". #598 rewrote the same paragraph: "It installs `git-filter-repo` with `pipx`, or `uv`, where it can, or prints the command, runs `openRepoShape --preflight`, and says last if the machine is ready to adopt or only to scaffold. `install.sh` never runs `sudo`; the preflight offers what is missing, each behind a typed `yes` at your terminal." - **Fitting the cap.** Keeping both made nine lines where #598 has eight, and README was at its cap. The cap was not raised. Two rewordings fit it, and no fact is dropped: - "`install.sh` is attached to every release and installs the newest, with no `gh` and no login." became "`install.sh`, attached to every release, installs the newest with no `gh` and no login." - #598's "`install.sh` never runs `sudo`;" became "It never runs `sudo` itself;". "It" is install.sh, the subject of the sentence before it, and "itself" is #564's own word for the contrast with the preflight. - **README, after** (8 lines, at most 80 characters, as 78 README lines on main already are): ``` `install.sh`, attached to every release, installs the newest with no `gh` and no login. Its command is PINNED to the release tag, recorded in `openRepoShape.ref` beside it: `setup.sh` and the standard are fetched at that tag, not at main. It installs `git-filter-repo` with `pipx`, or `uv`, where it can, or prints the command, runs `openRepoShape --preflight`, and says last if the machine is ready to adopt or only to scaffold. It never runs `sudo` itself; the preflight offers what is missing, each behind a typed `yes` at your terminal; in Git Bash it can take none. `| bash -s -- v1.0.1` names a release; the same line again upgrades. ``` #598's `pipx`/`uv` sentence and this PR's clause are word for word. README is **1449** lines, its cap (1422 + 5 for `550.txt` + 22 for `564.txt`). - **The Git Bash clause is still true after #598.** Under `curl … | bash`, `[ -t 0 ] || exec </dev/null` (install.sh:342; #598 moved it down from :277 and left its text alone) leaves the preflight no terminal on stdin. In Git Bash, setup-project.py runs on native Windows Python, where `open_terminal()` returns None (`os.name == "nt"`, setup-project.py:1372). So `can_ask()` is False, and `offer()` takes no `yes`. #598 changes what install.sh does before and after the preflight, not how the preflight reads an answer. - **Handbook, consent rules.** The `install.sh` item keeps #598's text, "installs `git-filter-repo` with `pipx` or `uv` where one is there, and itself never runs `sudo` or installs either of them", and then this PR's clause, word for word: "; in Git Bash it can take no `yes`, so it installs nothing." - **Handbook, masthead and `start`.** They merged as text: this PR's "macOS, Linux, WSL2, Git Bash" heading and PowerShell line, beside #598's "where `pipx` or `uv` can install it … and whether the machine is ready to adopt or only to scaffold". The `start` step-3 paragraph is #598's. It is `data-platform="linux mac wsl"`, as before, so it carries no Git Bash clause. - **The seven § "Starting a project in a new organisation" markers.** This PR's 278a1947 conflicted with #598's d1666fa6. All seven now record `badbb6b273215042ba0e8ae167fd760dc25430ee`, computed with `tests/test_repo_hygiene.py`'s own `readme_segments` and `readme_fingerprint`. That driver reproduces both parents' hashes (main d1666fa6, 4c3b72a 278a1947). All 23 markers match the merged README. - **`tests/test_install_sh.py`.** #598's hunks are `no_pipx` and `no_pipx_but_apt`'s printed commands, the test's docstring, and the line before the printed command, which now starts "there is neither pipx nor uv". They sit beside this PR's `bash_path` in `present_on_path` and in the same test's preflight line. Both sides' tests keep their meaning. **Fix round 6: retarget to main after #587 (22eacee) (head 4c3b72a).** #587 squash-landed on main as 22eacee at 2026-10-15T20:27:52Z, and GitHub retargeted this PR to `main`. 22eacee's tree, 831e71d, is `git merge-tree --write-tree 2b6dbb7 3d8fa05`: main holds exactly #587's final head 3d8fa05. So this round adds two merge commits and no other change: - **3080ac0d** merges #587's final head, 3d8fa05. It conflicted only in README.md and docs/handbook.html, with lane 4's #588 (709eec1), which 3d8fa05 had merged from main. The resolution keeps both sides' text (below). - **4c3b72ae** merges main, 77bb5f0: 22eacee, plus 2b6dbb7 (#584), which the squash carried but 3d8fa05 lacked, and #615's 77bb5f0, which landed after it. Four files conflicted, because the squash is not an ancestor of 3d8fa05 (merge base 62ef256). For each of them, main's copy is the same blob as 3d8fa05's, and 77bb5f0 does not touch it. Each therefore takes this branch's copy, which is 3d8fa05's copy plus this PR's change: | File | `3d8fa05e:` = `origin/main:` (77bb5f0) = `22eaceed:` | |---|---| | README.md | d164131 | | docs/handbook.html | 59ec34d | | tests/test_install_sh.py (add/add) | 34c7de5 | | tests/test_openreposhape_command.py | 5e49547 | No file was merged by hand. `git merge-tree --write-tree 4c3b72a origin/main` gives 4c3b72a's own tree, 97843ec, so the head holds all of main. `git diff --stat origin/main 4c3b72a` names only this PR's six files: `.github/workflows/tests.yml`, README.md, docs/handbook.html, `tests/conftest.py` and the two suites (430+, 141-). **The README and handbook resolution with #588 (3080ac0).** #588 ends README's "Windows, natively" and the handbook's Windows panel with one sentence: "Printed commands are quoted for a POSIX shell, so paste them into Git Bash. Only `shape-doctor.py`'s lines, `setup-project.py`'s family lines and `family.py`'s `NEXT`, `switch -c`, `add` and `git rm -r --cached` lines are quoted for PowerShell, on Windows." That sentence now follows this PR's Git Bash sentences, word for word. `tests/test_readme_windows_quoting_sentence.py` holds the handbook to README's words, and it passes. - **README**, before (3d8fa05): "That two-liner IS the Windows way in; the `openRepoShape` command in step 3 below is a macOS, Linux and WSL2 convenience with no Windows twin, because on Windows there is nothing to install. Printed commands are quoted …" - **README**, after: "That two-liner IS the Windows way in from PowerShell, which has no twin of step 3's `openRepoShape` command. Git Bash runs that command and step 3's one line, tested in CI but for a typed `yes`, which its preflight cannot take there. Printed commands are quoted …" - **Fitting the cap.** The two texts side by side came to seven lines where #588 had six, and README was at its cap. So "no twin of the `openRepoShape` command in step 3 below" became "no twin of step 3's `openRepoShape` command". Step 3 is "Install the `openRepoShape` command", so the meaning is the same. The six lines rewrap, and README stays at **1449** lines, its cap (1422 + 5 for `550.txt` + 22 for `564.txt`). No raise. - **#588's other README hunk**, the tighter `python setup-project.py` and "Two commands rather than one pipe" paragraphs, merged as text. - **Handbook Windows panel.** It keeps this PR's "There is no `openRepoShape` command to install in PowerShell … so none of its offers can be accepted there." and then #588's sentence, unchanged. - **The seven § "Starting a project in a new organisation" markers** (this PR's 34723d9a against #588's d77a1e59) now record `278a19479524fe8aae292daaca84492902b140ed`, the merged section's hash. It was computed with `tests/test_repo_hygiene.py`'s own `readme_segments` and `readme_fingerprint`, and all 23 handbook markers match the merged README. - **Consistency.** Every Windows, Git Bash, PowerShell and WSL2 sentence was read again in the merged text. #588's sentence is true in Git Bash too: the named tools run under native Windows Python there, where `os.name` is `nt`, so their lines are quoted for PowerShell, "on Windows", as it says. See checklist candidate 7. **Fix round 5 (head fe58d66).** One comments-only commit to `tests.yml`, for the re-review's N1 and N3. The header says the FULL suite runs on Linux only, so read alone it stays true beside the exception. The job's comment gives the measured "about a minute and a half (86 s on the first run, 50 s of it pytest)" where it said about three minutes. **Fix round 4 (head 5f001de).** Brett Heap merged #597 ("ci: run the test suite on Linux only") at 2026-10-15T16:54:43Z, which removed the Windows job these suites ran in. His word at 2026-10-15T18:20:35Z: "Option 1: keep a small Git Bash job for #596". That round added two commits: - **f6552862** merged lane 3's `l3-564-carry-to-main` b23b245 (#587's branch, this PR's base until fix round 6), which held main 654c476 and so #597. `tests.yml` became that branch's, byte for byte: the guard step and the macOS comment edit went with the two jobs #597 removed. The handbook keeps #597's macOS panel beside this PR's Git Bash text, and its seven markers were moved. - **5f001de1** adds the `tests-git-bash` job, and fixes the macOS sentence that #597 made say "CI runs on Linux only". v1.0.1's one-line install (#564) is meant to work in Git Bash on Windows, but nothing ran it there: `tests/test_openreposhape_command.py` and `tests/test_install_sh.py` wore `WINDOWS_SKIP`. They now run in the `tests-git-bash` job, under Git Bash. **Which bash.** `BASH` in `tests/conftest.py` is Git for Windows' `usr\bin\bash.exe`, found from `git --exec-path`, never from PATH. Probe 1 on `windows-latest` showed why: - A bare `bash` through `subprocess` is System32's WSL launcher. It prints "Windows Subsystem for Linux has no installed distributions." in UTF-16. CreateProcess searches System32 before PATH. - `shutil.which("bash")` finds `Git\bin\bash.EXE`. That launcher puts Git's `mingw64\bin` and `usr\bin` first on PATH, so Git's real `curl` came before the suite's fake one. The old install.sh suite, run that way, reached github.com and printed the real newest release: `release: v1.0.1, the newest release of opensoft/openRepoShape (https://github.com/opensoft/openRepoShape/releases/latest)`. A `git_bash_session` fixture puts Git's `mingw64\bin` (or `clangarm64\bin` on ARM64), `usr\bin` and `MSYSTEM` where Git Bash puts them, behind any fake a test puts first. `BASH_SKIP` replaces `WINDOWS_SKIP` in these two files only. **What the tests now do on Windows.** - **Paths.** Every path handed to bash, or expected in what it prints, is spelled the way Git Bash spells it (`/d/a/...`). The conversion uses Git's own `cygpath` (`bash_path`, `native_path`). Git Bash converts `HOME`, `TMPDIR` and `PATH` itself. - **Line endings.** Every script a test writes for bash is written as LF bytes. The fake's redirect headers and its `gh` tag are written as bytes: Python on Windows prints `\r\n`, and `$(...)` keeps the `\r`. - **The executable bit.** Git Bash's drives are mounted `noacl`, so `chmod 755` changes nothing. A file that starts with `#!` runs anyway. `--install`'s output is checked by mode 755 on POSIX, and by bash's own `test -x` on Windows. - **A test's own PATH.** On Windows it holds `#!/bin/sh` wrappers. A symlink to a Git Bash program cannot load its DLL: with symlinks, `mktemp` failed and install.sh refused `could not make a temporary directory`. - **An argument holding a newline** reaches Git Bash through the environment. On the Windows command line it was split in two: `v1\nforged` arrived as "two versions given". In Git Bash, bash hands bash the argument whole, so the test now does the same. - **`ln -s`.** A new test makes a link with Git Bash's own `ln -s`, after dropping any `$MSYS` the caller set. By default that is a copy, which has no `openRepoShape.ref` beside it and so follows main. With `MSYS=winsymlinks:nativestrict` it is a real link, which reads the record. - **Two anchors (fix round 2).** - The fetched-setup.sh test now also asserts that the parent of the stub's directory exists. Its "the directory is gone" line therefore cannot pass on a path Python cannot open. Both asserts read one `ran_dir = native_path(ran_in)` (fix round 3), so the existence check cannot be reverted to `Path(ran_in)` alone. - The `gh` shim test already could not pass with the shim unreachable: it asserts that the shim's own log holds exactly `auth status`, and only the shim writes that log. Probe 4 reverted its `os.pathsep` and it still passed: the shim stayed reachable either way, most likely through MSYS's conversion of PATH, which the log does not show. **The workflow (fix round 4).** - **The header** keeps #597's text and adds one sentence: "One exception, on Brett Heap's word at 2026-10-15T18:20:35Z, "Option 1: keep a small Git Bash job for #596": the `tests-git-bash` job below runs the launcher's and the installer's suites, and nothing else, on Windows under Git Bash." - **`tests-git-bash`**: `runs-on: windows-latest`, `timeout-minutes: 15`, and no `if:`, so it runs on every trigger the workflow has: a push to main, a pull request, a manual run. Its steps: 1. checkout and setup-python, at the ubuntu job's two commits, with `fetch-depth: 0`; 2. `python -m pip install --disable-pip-version-check pytest==8.3.4`; 3. the git identity, appended to `GITHUB_ENV` in PowerShell, as the old Windows job did; 4. "Git Bash is the bash the launcher and installer suites run": fails the job when conftest finds no Git Bash, and prints the bash the suites will run; 5. `python -m pytest -q -rA tests/test_openreposhape_command.py tests/test_install_sh.py --basetemp=${{ runner.temp }}\t`. - **Its env** is the old Windows job's: `PYTHONUTF8=1`, `core.autocrlf=false` and `core.longpaths=true` through `GIT_CONFIG_COUNT`. - **Its comment** says why it exists (#585, the one-line install on Windows), why it runs two suites only (#597), why its bash is Git's `usr\bin\bash.exe` (pointing to conftest), and why it runs on a push to main. **The docs.** - **README § "Windows, natively" and the handbook's Windows panel** say: PowerShell has no twin of the command; Git Bash runs it and the one-line install, tested in CI but for a typed `yes`, which the preflight the one-line install ends with cannot take there. #588's sentence about POSIX-quoted printed commands follows (fix round 6). - Why: install.sh:342 (:277 before #598) runs `exec </dev/null` under `curl … | bash`, and setup-project.py's `open_terminal()` has no Windows path. - Nothing installs without a typed `yes`, so consent holds. - Fix round 4: this sentence was left with nothing behind it once #597 removed the Windows job. `tests-git-bash` makes it true again, so its text is unchanged. - **README's macOS sentence and the handbook's macOS panel (fix round 4).** #597 made them say "though CI runs on Linux only and no run of it checks them against bash 3.2". With this job that is false. They now say "though no CI run, on Linux or in Git Bash on Windows, checks them against bash 3.2". README rewraps inside the same four lines. - **Step 3's sentence about the preflight's offers** (README) and **the consent rules** (handbook) add that in Git Bash it can take no `yes`. Since fix round 7, both clauses follow #598's `pipx`-or-`uv` text, and README's paragraph is reworded to fit (above). - The handbook's own step-3 install paragraph is `data-platform="linux mac wsl"`, so it is already scoped away from Windows, and is left. - **The WSL2 sentence** says WSL2 "runs every bash entry point in Linux itself", instead of being "still how you run" them. - **The handbook's masthead** lists Git Bash beside macOS, Linux and WSL2. - **README keeps its line count**: 1449, the cap (1422 + 5 for `550.txt` + 22 for `564.txt`). - **The seven handbook markers** for README.md § "Starting a project in a new organisation" record its new hash, `badbb6b273215042ba0e8ae167fd760dc25430ee` (fix round 7, after #598). Fix round 4's merge set them to `a88ac2d0…`, 5f001de moved them to `34723d9a…` for the macOS sentence, and fix round 6 to `278a1947…` after #588. Every hash was computed with `tests/test_repo_hygiene.py`'s own `readme_segments` and `readme_fingerprint`. - **A separate small job, on Brett Heap's word.** At 2026-10-15T18:20:35Z he chose "Option 1: keep a small Git Bash job for #596". The option read: "A small Windows job for just these two suites. The probe runs took 2-3 minutes end to end, so it finishes well inside the 34-36 minute Linux job and adds no wall-clock time. The README claim stays true. It is an exception to #597's decision, so it needs your word." So the job runs these two suites and nothing else. It is not a matrix entry on the ubuntu job, whose actionlint download is a linux-amd64 binary. - **Every trigger, a push to main included.** A squash lands a tree no pull-request run tested (#122), and these two suites are the only run of the one-line install on Windows. At about a minute and a half beside the ubuntu job (86 s on its first run), it adds no wall-clock time. - **What the job keeps from the old Windows job, and why.** - `PYTHONUTF8=1`: the suites decode bash's output with `text=True`, which uses the locale's code page (cp1252) outside UTF-8 mode, and the launcher's `--help` prints em dashes (openRepoShape:108, :119-120). - `core.autocrlf=false` and `core.longpaths=true`: every Windows run of these suites had both, #585's four probes included, and no run without them exists. - `fetch-depth: 0`: `test_a_ref_the_doctor_would_check_out_is_validated` sets `OPENREPOSHAPE_REPO` to this checkout, so the launcher clones it, and every Windows run of it cloned a full one. - `--basetemp=${{ runner.temp }}\t`: the old job's short temp root, for MAX_PATH. - **What it leaves out.** - **git-filter-repo.** These suites never reach a real one. The install suite's PATH holds only its own fakes, `git-filter-repo` and `pipx` among them. The launcher's machine report gets a fake `git-filter-repo` on the PATH `machine_path` builds. On Linux, with every PATH directory that held a `git-filter-repo` removed (`filter-repo=none` in the run log), the two suites gave **113 passed**. `test_it_installs_the_git_filter_repo_ci_runs` still finds the ubuntu job's pin. - **actionlint.** The ubuntu job lints this file. - **`usr\bin\bash.exe`, not `bin\bash.exe`, and not PATH.** The probe-1 lines quoted above. - **`git_bash_session` is needed, though the runner's own PATH hides it.** - The runner's PATH already holds Git's `bin`, `usr\bin` and `mingw64\bin`, with `bin` before System32 (probe-1 PATH dump). So reverting the fixture changes nothing there (probe 2: 113 passed). - A stock Git for Windows install puts only `Git\cmd` on PATH. Probe 3 ran the two files on exactly that PATH, where `which mktemp` is `None` and `which bash` is `C:\Windows\system32\bash.EXE`: - with the fixture: **113 passed**; - with it reverted: **59 failed, 15 passed, 39 errors**, for example `bash: line 199: mktemp: command not found` and `this machine has no mktemp, which the install needs`. - **`bash -s` runs still take their script through a text-mode pipe.** That pipe hands bash CRLF on Windows, but Git Bash's bash drops a carriage return before a newline: a CRLF script piped to it printed `crlf-ok` and exited 0 (probe 1). Sending bytes instead changed no result (mutation `text-stdin`, 113 passed), so that change was dropped. - **Python can make symlinks on the runner** (`os.symlink: ok`), so the three existing symlink tests run there unchanged. - **The macOS sentence names Git Bash without a line.** "No CI run, on Linux or in Git Bash on Windows, checks them against bash 3.2" is true with this job, and fits README's four lines. A clause naming the two suites would have needed a fifth line and a cap raise. - **Not claimed: that setup's own `yes` is asked in Git Bash.** Typed at a Git Bash prompt, `openRepoShape <Project>` reads its `yes` through native Windows Python. Whether that Python sees a console depends on Git Bash's pseudo-console support, and nobody has confirmed it on a Windows machine. - **Linux, on the head 52524fe** (fix round 7, `dirty=0`): - the two suites: **113 passed** in 41.23s; - `tests/test_install_sh_filter_repo.py` (#598's, unchanged): **18 passed** in 7.32s; - `tests/test_repo_hygiene.py`, `tests/test_readme_sections.py`, `tests/test_cli_reference.py`, `tests/test_setup_by_hand_commands.py` and `tests/test_readme_windows_quoting_sentence.py`: **171 passed** in 25.43s. - `git grep -l 'install.sh' tests/` finds `conftest.py`, `readme-cap.d/564.txt`, `test_install_sh.py`, `test_install_sh_filter_repo.py` and `test_repo_hygiene.py`. Every test file among them was in these runs. No skips. - The merge, before its commit: `test_repo_hygiene.py`, `test_readme_sections.py` and `test_readme_windows_quoting_sentence.py`, 144 passed. - **actionlint 1.7.12 on 52524fe**, on `tests.yml` and the two template workflows: exit 0, with shellcheck on PATH. `tests.yml` is the same blob as at 4c3b72a (5fc46de); #598 does not touch it. - **Linux, on the head 4c3b72a** (fix round 6, `dirty=0`): - the two suites: **113 passed** in 28.57s; - `tests/test_repo_hygiene.py`, `tests/test_readme_sections.py`, `tests/test_cli_reference.py`, `tests/test_setup_by_hand_commands.py` and `tests/test_readme_windows_quoting_sentence.py`: **171 passed** in 17.09s. - Those cover every `tests/test_install_sh*.py` (there is one) and every test file `git grep -l 'install.sh' tests/` finds (`test_install_sh.py`, `test_repo_hygiene.py`; the other two hits are `conftest.py` and `readme-cap.d/564.txt`). - 3080ac0's merge, before its commit: `test_repo_hygiene.py`, `test_readme_sections.py` and `test_readme_windows_quoting_sentence.py`, 144 passed. - **actionlint 1.7.12 on 4c3b72a**, on `tests.yml` and the two template workflows: exit 0, with shellcheck on PATH. The workflow keeps main's #593 `concurrency` block byte for byte (this PR's two `tests.yml` hunks are the header and the new job), the header's "The FULL suite runs on LINUX ONLY" with the exception sentence, and `tests-git-bash`. - **Linux, on the head 5f001de** (`dirty=0`): the two suites, `tests/test_repo_hygiene.py`, `tests/test_readme_sections.py`, `tests/test_cli_reference.py` and `tests/test_setup_by_hand_commands.py`: **281 passed** in 61.24s. - **Linux, fix round 4, before its commit:** - the two suites: 113 passed; - the two suites with no `git-filter-repo` on PATH: **113 passed**; - the four docs and hygiene files: 168 passed; - the merge alone, before its commit: `test_repo_hygiene.py` and `test_readme_sections.py`, 141 passed. - **actionlint 1.7.12**, fetched and checksum-checked as the ubuntu job does, on `tests.yml` and the two template workflows: exit 0, with shellcheck on PATH. - **The YAML parse.** Triggers: `push` to `main`, `pull_request`, `workflow_dispatch`. Jobs: `tests` (ubuntu-latest) and `tests-git-bash` (windows-latest, `timeout-minutes: 15`). Neither has an `if:`, so both run on every trigger. - **Linux, earlier rounds:** on 01e8c2c, the same five files without `test_setup_by_hand_commands.py`, 276 passed. Lane 5's re-review got the same 276 there. On 649b089, with `tests/test_setup_by_hand_commands.py`, `tests/test_agents_md_codes.py` and `tests/test_gh_guard.py` as well, 334 passed. - **Windows, `windows-latest`, through probe branches that ran only these suites:** - Probe 1 (run 38752845751): 109 passed, 2 failed, 0 skipped. The two failures were the newline arguments, fixed since. - Probe 2 (run 38754067543, tree ebba347): **113 passed, 0 skipped**, in 68.83s. - Probe 3 (run 38757083883, on 649b089): **113 passed** in 50.97s. On a stock Git for Windows PATH (only `Git\cmd`): 113 passed. - Probe 4 (`l5-585-probe-4`, on 01e8c2c): **113 passed** in 77.92s (run 38769166462). - **The same two files as they were at 5191f0e, with only `WINDOWS_SKIP` lifted** (probe 1): 88 failed, 23 passed. Two causes: the WSL launcher, and the real network through `Git\bin\bash.EXE`. - **Windows on 5f001de, the PR's own run of `tests-git-bash`:** **113 passed** in 50.28s, with the whole job taking 1 min 26 s (18:37:00Z to 18:38:26Z, check run 116601758252). - The guard step printed `C:\Program Files\Git\usr\bin\bash.exe`. - Its steps and env are probe 4's, less the git-filter-repo install, and with `-q -rA` and a 15-minute job timeout. Probe 2 ran these on **ebba347f**, the tree before the squash, which still had a `run_piped` helper; the `text-stdin` row is that helper. The squashed head 649b089 was then re-measured whole by probe 3 (113 passed), and fix round 2's head 01e8c2c by probe 4. Each row reverts one Windows hunk and runs the two files again. | Hunk reverted | Result | |---|---| | `BASH` is the bare word `bash` | 108 failed | | paths keep Windows' spelling | 25 failed | | scripts written with `write_text` (CRLF) | 1 failed: `test_a_release_whose_command_records_no_ref_exits_one`, whose launcher's first line became `#!/usr/bin/env bash\r` and was refused as not the command | | the fake prints its headers and tag in text mode | 22 failed | | mode 755 checked on Windows too | 2 failed | | symlinks on a test's own PATH | 28 failed | | newline arguments on the command line | 2 failed | | no `git_bash_session` | 113 passed on the runner's PATH; on a stock Git for Windows PATH (probe 3) 59 failed and 39 errors, against 113 passed with it | | `bash -s` script sent as bytes (`run_piped`) | 113 passed either way; this hunk was dropped | Fix round 2's anchors (probe 4, on 01e8c2c): | Run | Result | |---|---| | the fetched-setup.sh test, `native_path(ran_in)` reverted to `Path(ran_in)` in both asserts | exit 1: 1 failed. The new parent-directory anchor catches it. Since fix round 3 both asserts read one `ran_dir`, so this is the only way to revert it. | | the `gh` shim test, its PATH joined with `:` instead of `os.pathsep` | exit 0: 1 passed. The shim stays reachable, so the hunk is not load-bearing on this runner. The log shows only that outcome; MSYS's conversion of PATH is the likely reason. The test is still not vacuous: it asserts that the shim's own log holds exactly `auth status`, and only the shim writes that log, so an unreachable shim would fail it. | | both `ln -s` cases with `MSYS=winsymlinks:nativestrict` exported, head | exit 0: 2 passed | | the same, with the `MSYS` drop reverted | exit 1: 1 failed (`ln-default` made a link), 1 passed | #590 adds four cases to these two suites, written while they skipped on Windows: - `test_a_command_that_is_a_symlink_is_refused_before_any_request[live|dangling]`; - `test_install_refuses_a_target_that_is_a_symlink[live|dangling]`. Each compares a path bash printed with `str(path)`. Each also compares `os.readlink`'s answer with the target, and on Windows that answer typically starts `\\?\` (Python's `os.readlink` documentation, since 3.8; the probe's failures stop at the first assert, so no log shows it). Linux passes on the merged tree (117 passed), but under Git Bash those four cases fail, and `tests-git-bash` runs them. **Whichever of #596 and #590 lands second applies these hunks** to the merged tree. Probe 4 (run 38769166462) applied exactly these. ```diff --- a/tests/test_install_sh.py +++ b/tests/test_install_sh.py @@ -668,12 +668,14 @@ def test_a_command_that_is_a_symlink_is_refused_before_any_request( result = net.run() assert result.returncode == 2, result.stdout + result.stderr said = " ".join(result.stderr.split()) - assert f"{link} is a symbolic link, so nothing was installed" in said, said + assert f"{bash_path(link)} is a symbolic link, so nothing was installed" \ + in said, said assert "pipx upgrade openreposhape" in said assert "pipx uninstall openreposhape" in said assert net.calls() == [], net.calls() assert link.is_symlink() - assert link.readlink() == packaged + # Windows reads a link back with `\\?\` ahead of its target. + assert str(link.readlink()).removeprefix("\\\\?\\") == str(packaged) if not dangling: assert packaged.read_bytes() == original assert sorted(path.name for path in net.bin.iterdir()) == \ --- a/tests/test_openreposhape_command.py +++ b/tests/test_openreposhape_command.py @@ -407,17 +407,18 @@ def test_install_refuses_a_target_that_is_a_symlink(tmp_path, dangling): link = bin_dir / "openRepoShape" link.symlink_to(packaged) result = run_cmd("--install", home=tmp_path, - env={"OPENREPOSHAPE_BIN_DIR": str(bin_dir), + env={"OPENREPOSHAPE_BIN_DIR": bash_path(bin_dir), "OPENREPOSHAPE_REF": "v9.9.9", "OPENREPOSHAPE_RECORD_REF": "1"}) assert result.returncode == 2, result.stdout + result.stderr said = " ".join(result.stderr.split()) - assert f"{link} is a symbolic link, so --install will not copy this " \ - "command through it" in said, said + assert f"{bash_path(link)} is a symbolic link, so --install will not " \ + "copy this command through it" in said, said assert "pipx upgrade openreposhape" in said assert "pipx uninstall openreposhape" in said assert link.is_symlink() - assert os.readlink(link) == str(packaged) + # Windows reads a link back with `\\?\` ahead of its target. + assert os.readlink(link).removeprefix("\\\\?\\") == str(packaged) if not dangling: assert packaged.read_bytes() == original assert not packaged.with_name("openRepoShape.ref").exists() ``` Both files already import `bash_path` once #596 is in. On Linux, the merge of 649b089 with d090f0c, with these hunks: **117 passed**. Fix round 7, on the merge of 52524fe with #590's head 1c8a708, with fix round 6's resolved `tests.yml` (both inputs unchanged since; the result is blob 266c62c): the hunks apply (`git apply --check` exit 0). The two suites (117 by collection), `tests/test_install_sh_filter_repo.py` (18), `tests/test_openreposhape_package.py` and `tests/test_repo_hygiene.py` give **270 passed** in 48.69s. Fix round 6: on the merge of 4c3b72a with #590's current head 1c8a708, with `tests.yml` resolved as below, the hunks apply (`git apply --check` exit 0) and the two suites give **117 passed**; with `tests/test_openreposhape_package.py` and `tests/test_repo_hygiene.py`, 252 passed. Probe 4 runs the merge of 01e8c2c with `l3-563-pypi-package` on Windows: the four cases without the hunks, then both suites with them. In run 38769166462, on Windows: - **Without the hunks**: exit 1, `4 failed, 113 deselected`. These are exactly the four cases. The launcher pair failed on `REFUSED: D:\a\_temp\…\bin/openRepoShape is a symbol…`, which confirms rv585's inferred launcher failures; the install pair failed on `REFUSED: /d/a/_temp/…/.local/bin/openRepoShape …`. - **With the hunks**: they apply (exit 0), and both suites give **117 passed** in 75.13s. **`tests.yml` conflicts with #590 (fix round 6; unchanged in fix round 7, where #590's head is still 1c8a708 and this PR's `tests.yml` is the same blob).** #590 now targets `main` too: at fix round 6 its merge ref's first parent was main 77bb5f0. Its head 1c8a708 has merged #587's final head and main, so it holds #597, and it merges with main cleanly. Both PRs add to the same two places in `tests.yml`, so against 4c3b72a there are three regions: - **The header.** Keep this PR's "The FULL suite runs on LINUX ONLY" and its exception sentence, then #590's four lines about the `package` job. - **The end of the file, two regions.** git splits the two new jobs where they share the checkout and setup-python lines. Keep both jobs whole: `tests-git-bash`, then #590's `package`. - **Checked.** I built that file: this PR's `tests.yml` with #590's header paragraph and its `package` job added. Against #590's file it differs only in this PR's two hunks, and against this PR's file only in #590's two. `yaml.safe_load` gives the jobs `['tests', 'tests-git-bash', 'package']`, and actionlint 1.7.12 exits 0 on it. #590's `package` comment now says "the other jobs" and "on Linux like the rest of the suite since #597", which stay true beside `tests-git-bash`. Fix round 4's advice to drop `tests-windows` and `tests-macos` and to reword "three jobs" no longer applies: #590 has done both. The open pull requests are the 17 with a `refs/pull/<n>/merge` ref in `git ls-remote origin 'refs/pull/*'`: 583, 590, 594, 596, 599, 614, 617-623 and 625-628. Each head was merged with 52524fe and, separately, with main 396c0ff. The ones not in the table merge cleanly with this head and touch none of its six files: #583, #614, #617, #618, #619, #621, #622, #625, #626 and #628. | Against | Result | |---|---| | origin/main 396c0ff (#591, #572, #624, #598 3fb21d9, #570) | **clean**. The merge gives this head's own tree, 6d8ffea: the head holds all of main. | | #590 1c8a708 (`l3-563-pypi-package`) | **conflicts** in `.github/workflows/tests.yml`, 3 regions: the header and the end of the jobs. #590 against main alone is clean, so this is the two PRs' own overlap. It also touches `tests/test_install_sh.py` and `tests/test_openreposhape_command.py`, which merge as text. See the #590 section above for the resolution, the four test cases and fix round 7's 270 passed. | | #599 b0182e2 (lane 3, stacked on #590's old head d090f0c) | **conflicts** in `.github/workflows/tests.yml`, 2 regions. #599 also conflicts with main alone, in six files (`tests.yml`, README.md, the handbook, `install.sh`, `openRepoShape`, `tests/test_install_sh.py`). It is #597's conflict, through #599's stale base, not this job's. | | #627 fc0656b (`fix/606-readme-followups`, #606; new since fix round 6) | **conflicts** in docs/handbook.html only: 7 regions, each one § Starting marker line (this PR's badbb6b2 against #627's 51702a2b). Its README hunks (the second-run refusal in § Starting, and `CONTRACTS_DIR` and the `single-repository.yaml` question in § Adopting) merge as text with this PR's. #627 against main alone is clean. **Whoever lands second** sets the seven markers to the merged README's hash. On this head plus fc0656b that is `fe0d932b031e4a08fc885f93d6cd978df0d5a25c`. README is then 1456 lines: 1449 plus #627's own `readme-cap.d/606.txt` (+7). | | #594 be808a7, #623 1e30fa7 | **clean**. Both touch `tests/conftest.py`, which merges as text. | | #620 4c049a8 | **conflicts** in `adopt-project.py`, and so does #620 against main alone: its own conflict with main, not an overlap with this PR. | #598 landed as 3fb21d9 and is in the main row; fix round 7 is that merge. Every lane-5 PR and every other PR that has landed is in the main row. - **`tests/test_setup_sh.py`, and `test_repo_hygiene.py`'s `bash -n` test, still skip on Windows,** and since #597 nothing runs them on Windows at all. #585 names the launcher's and the installer's suites, and Brett Heap's word keeps a job for those two only. The same `BASH` would serve both. - **Any typed `yes`.** CI has no terminal. - **`tests/test_install_sh_filter_repo.py` in `tests-git-bash` (fix round 7).** #598's file is not added to the job; that is the coordinator's call. See checklist candidate 8. - **`docs/release-notes/v1.0.0.md` and `docs/release-notes/v1.0.1.md`** are records of those releases, and #597 left them unedited too. v1.0.1's notes say #585 runs the suites under Git Bash; that stays true. The v1.1.0 text is below. - **A required check.** This PR does not make `tests-git-bash` a required status check. That is a ruleset setting, and Brett Heap's call. No v1.1.0 notes file exists on main yet, so this PR writes none. Proposed text, a section of its own: > **Git Bash on Windows (#585).** Git Bash, the bash that Git for Windows installs, runs the one-line install and the `openRepoShape` command. CI's `tests-git-bash` job runs their suites under Git for Windows' own bash, with the PATH Git Bash makes, and fails if it cannot find that bash. That job is an exception to #597's Linux-only CI, made on Brett Heap's word. In PowerShell the way in is unchanged: `py setup-project.py`. Two things differ from macOS and Linux. `ln -s` in Git Bash makes a COPY unless `MSYS=winsymlinks:nativestrict` is set; a copy has no `openRepoShape.ref` beside it, so it follows main, and `openRepoShape --version` says so. Link it with that setting (Windows lets a non-administrator make a symlink only in Developer Mode), or put `~/.local/bin` on `PATH` instead. And `chmod` changes nothing on Git Bash's drives; a file that starts with `#!` runs as a command anyway. Not tested there: `setup.sh` run on its own (its suite still skips on Windows), and any typed `yes`, for which CI has no terminal. In Git Bash the preflight that the one-line install ends with cannot take a `yes` at all, so it installs nothing for you. 1. **The machine report's `python3` line on Windows.** `--install`'s `machine:` block probes only `python3`. Where Python came from python.org, Git Bash has `python` and no `python3`, or only the Microsoft Store stub. The block then says `python3 MISSING`, or "present" for a stub, while `--preflight` passes with `python`. 2. **A drive-letter `$OPENREPOSHAPE_REPO`.** `shape_clone_url` treats `C:/src/openRepoShape` as an owner/name and builds `https://github.com/C:/src/openRepoShape.git` from it. Git Bash and git itself both accept the drive-letter spelling. 3. **A Windows-spelled `$OPENREPOSHAPE_BIN_DIR`.** `--install` then prints `export PATH="D:\...:$PATH"`, which bash cannot use: the drive's colon splits it. 4. **A stale docstring.** `test_a_ref_the_doctor_would_check_out_is_validated` says the refusal arrives before any clone. `shape_checkout` clones first, then checks the ref. 5. **On Windows, the preflight a piped install ends with cannot take a typed `yes`.** - Under `curl … | bash`, install.sh:342 (:277 before #598) hands its children /dev/null for stdin. - setup-project.py's `open_terminal()` returns None when `os.name == "nt"`, so it has no Windows path to the person's terminal. Opening `CONIN$`, where POSIX opens `/dev/tty`, might be the analogue. - Found by rv585; it is the root of this PR's README wording. 6. **The handbook's step 3 has no Git Bash path.** Its install block and paragraph are `data-platform="linux mac wsl"` (docs/handbook.html:775-784 on 01e8c2c), so a reader on the Windows tab never sees the one-line install that the Windows panel says Git Bash runs. Adding it to the Windows tab is a docs decision. 7. **In Git Bash, the host-quoted lines are still quoted for PowerShell.** `openRepoShape --doctor`, a family `setup-project.py` run and `family.py`, started from Git Bash, run under native Windows Python, where `os.name` is `nt`. So `quote_arg`, `shell_quoted`, `shell_line` and `shell_word` (for example setup-project.py:2331, `if os.name == "nt" and not posix`) quote for PowerShell, even though the person is at a bash prompt. #588's sentence stays true ("on Windows"). But someone who follows "Git Bash runs that command" and pastes such a line back into Git Bash gets the failure that `tests/test_readme_windows_quoting_sentence.py`'s docstring names: `git -C C:\work\Orbit` reads as `C:workOrbit`. Choosing `sh`'s dialect under Git Bash (for example on `MSYSTEM`) would be a #532 decision. 8. **#598's installer cases do not run under Git Bash.** `tests-git-bash` runs `tests/test_install_sh.py`, and since fix round 7 that suite reaches #598's code in two ways: every run now prints `adoption:` and `done:`, and `no_pipx` expects uv's printed command. But the uv install, the readinesses' wording and the pasted next steps are tested in `tests/test_install_sh_filter_repo.py` only, on Linux. README says Git Bash runs step 3's one line, "tested in CI". - **What the file uses.** It inherits `test_install_sh.pytestmark` (`BASH_SKIP` and `git_bash_session`), and drives every run through `Net`: `fake` (LF bytes through `write_script`), `run` (`BASH`, `bash_path(INSTALLER)`), `serve`, `installed` and `calls`. Its own `uv` fake writes LF bytes, like `Net.fake`, and names the interpreter as `shlex.quote(sys.executable)`, as `Net.fake` does in the job today. No assert compares a path bash printed with a Python path; each checks a line's start or end. - **Under Git Bash it would likely pass.** Its programs see `PATH=net.path` alone, so the runner's own pipx or uv cannot leak in. The launcher's `--install` probes `python3` with `command -v` and never runs it, so the logging `python3`/`python` fakes stay silent. Its `paste()` sends a script through a text-mode pipe, as `Net.run(piped=True)` already does in the job. - **Not run on Windows.** On Linux: 18 passed in 7.32s. Adding it to the job is one more path on the job's pytest line. 9. **README still names `pip install git-filter-repo` for adopting.** README:768 (§ Adopting) says "`git filter-repo` is a **hard dependency** — `pip install git-filter-repo`, or the same name from apt or brew." #595 found that `pip install` is refused on an externally managed Python (Debian 12, Ubuntu 23.04, Arch; PEP 668), and #598's install.sh no longer prints it. Neither #598 nor this PR touches that line. Review: rv585 found 0 blockers, 2 should-fix and 8 nits on 649b089 (CHANGES NEEDED), fixed or answered in 01e8c2c; the re-review rv585b found 5 nits on 01e8c2c (APPROVE WITH NITS), fixed or answered in 3095a9c; rv585c found 4 nits on 5f001de (APPROVE WITH NITS), fixed or answered in fe58d66. CI (Brett Heap's ruling 27, Linux-only since #597): H0 is the head 52524fe, a hand-resolved merge of main 396c0ff, green on tests (Linux), tests-git-bash and SonarCloud; main since then (#625 8f453d0, #583 de428f5) touched none of this PR's files, and the local gate passed on the predicted squash over de428f5: the launcher's, the installer's and install.sh's filter-repo suites, 131 passed; and the hygiene, README-section, CLI-reference, setup-by-hand and Windows-quoting sets, 171 passed. The tests-git-bash job is on Brett Heap's word of 2026-10-15T18:20:35Z, "Option 1: keep a small Git Bash job for #596". Landed on Brett Heap's word of 2026-10-15T22:24:36Z, "Merge #596 when its turn comes". Closes #585 Lane: openreposhape-5 (openRepoShape-5) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>



Lane: openreposhape-1 (openRepoShape-1)
Claim: #521 (comment)
Claim: #427 (comment)
What
adopt-project.pyandshape-doctor.pyread a repository'soriginone way, with one function inscripts/repo_shape.py. That reading serves #499's source check, the organisationplanfills in, whatplansays about either, and the doctor's adoption line.A url names the
<org>/<repo>it ends in, however it ends (adopt-project.py: read<org>/<repo>from everyorigingit accepts (a local path, a Windows backslash path, a trailing/or.git/) #521).https://github.com/acme/Atlas/,.../Atlas.git/,ssh://git@ssh.github.com:443/acme/Atlas.git/,git@github.com:acme/Atlas/and[::1]:acme/Atlas.git/all nameacme/Atlas. So--project Atlsa --org acmeis refusedadopt-not-the-source, and with no--orgthe organisation isacme.A path names no repository, however it is written (adopt-project.py: read
<org>/<repo>from everyorigingit accepts (a local path, a Windows backslash path, a trailing/or.git/) #521). This covers an absolute or relative path,/or\, a drive (C:\src\acme\Atlas.gitandC:/src/acme/Atlas.gitalike), a UNC share, and afile://url.--organd--projectare not compared with it, andplansays so in a NOTE that names the repositoryexecutewill act on:A path gives
planno organisation either. With no--orgit isadopt-no-org, whose sentence now names this case: "...it has none, its URL is not UTF-8 or ends in noorg/repo, or it is a path, which names no repository on GitHub".An organisation
planread andchecked_valuerefuses is named by where it came from (adopt-project.pyplantakes the organisation from the source'soriginURL and runs it throughchecked_value("--org", ...), so an origin whose organisation part is not ASCII or holds a space (/x/café/repo.git,/x/my repos/repo.git,caf%C3%A9) endsplaninREFUSED unsafe-value: --org is 'café', a flag nobody passed, with a remediation that explains a leading-and never says to pass--org#427). The remediation says first to pass--org. The refusal and its exit code stay:adopt-not-the-sourcenames an organisation nobody passed the same way:--project Atlsa, with the organisation of the source'sorigin(--orgnot given), names acme/Atlsa, .... For--source <org>/<repo>it says "of--source".The doctor's adoption line reads
originthe same way (shape-doctor.py, NOT A SHAPE ROOT on a git repository: print both ways in, as AGENTS.md says, and add--orgto the adopt line when there is noorigin#545, shape-doctor.py: a git repository is told of both ways in, the adoption and the scaffold, and the adoption line ends--org <your-org>where itsoriginnames no organisationplancan read, so pasting it is no longer refusedadopt-no-org(#545) #553):shape-doctor.py'sorigin_orguses the one reading, so its NEXT ends--org <your-org>for a pathoriginand not for a url ending/.Why (measured on main bfed143, whose adopt-project.py main f6eaab7 still has; git 2.43.0, Python 3.12.3, local only, a stub
gh)Re-measured on main 64fc9a8, whose adopt-project.py has #567's changes, every row below gives the same result as on bfed143.
<dir>/clones/Atlas.git,--org acme --project Atlasadopt-not-the-source... the source is clones/Atlas; told to pass--org clones<dir>/srv/acme/Atlas.git, no--org,--project Atlasacmeread from a directory nameadopt-no-org(pass--org)C:\src\acme\Atlas.git,--org acme --project Atlsa/twinC:/src/acme/Atlas.git,--org acme --project Atlsaadopt-not-the-source/https://github.com/acme/Atlas/,--org acme --project Atlsaadopt-not-the-source, the source is acme/Atlas.git/https://github.com/acme/Atlas.git/, same flagsadopt-not-the-source/, no--orghttps://github.com/acme/Atlas/,--project Atlasadopt-no-orgacme<dir>/x/café/repo.git, no--orgunsafe-value: --org is 'café'adopt-no-org(pass--org)<dir>/x/my repos/repo.git, no--orgunsafe-value: --org is 'my repos'adopt-no-orghttps://github.com/caf%C3%A9/repo.git, no--org--org is 'caf%C3%A9'--org (not given, so the organisation of the source'sorigin) is 'caf%C3%A9', pass--orggit@h:-evil/repo.git, no--org--org is '-evil'--orgremedy as abovehttps://example.com/café/Northwind.git, no--org--org is 'café'--orgremedy as abovegit@github.com:Org/Northwind.git,--project Northwind<dir>/y/café/repo.git,--org testorg --project Northwindadopt-not-the-source(#499 comparedcafé/repo)origin, no--orgadopt-no-org(already fixed by #353, #292)adopt-no-orghttps://github.com/acme/Atlas.git,--project Atlsa, no--org--org acme and --project Atlsa name acme/Atlsa(a flag nobody passed)--project Atlsa, with the organisation of the source'sorigin(--orgnot given), names acme/AtlsaOnly the no-origin row of #427 was already fixed on main, by #353's
adopt-no-orgordering, which this PR builds on:adopt-no-orgis still asked beforechecked_value.How
The decision taken: a path
originnames no repository, for v1.1.0. Lane 1's coordinator accepted reviewer r521's recommendation on 2026-10-15. Brett may overrule it before the merge. The reasoning follows.What a local-path
originnames, and why it is nothing. adopt-project.pyplannever compares--project(or--org) with the repository it adopts in place, so a source namedbilling-serviceis refused with a remediation that steers to--project BillingService, which plans and checksplan okagainstacme/billing-service, andexecutethen acts onacme/BillingService: a rawgit ls-remotefailure when no such repository exists, and, when a different repository of that name does, both legs, the split branch, the pull request and the topic on that repository #499 compares<org>/<project>with the source becauseexecutewithout--local-remote-diracts onhttps://github.com/<org>/<project>.git. Under--local-remote-dir, the split goes to the source's own path, and nothing is compared that matters. A path is a directory on this machine. It says nothing about which GitHub repository the source is.<org>/<repo>(adopt-project.py: read<org>/<repo>from everyorigingit accepts (a local path, a Windows backslash path, a trailing/or.git/) #521's first row). It also offers a directory's name as the organisation.--projectonly: this still refuses the right source when a working clone sits in a folder named otherwise (git clone ~/src/atlas-work). It still needs--orgfrom somewhere.--projector--orgwherever the origin really names a repository: a url, or--source <org>/<repo>. The cost is that a typo under a pathoriginplans, so the NOTE says that nothing was compared and names the repositoryexecutewill act on.Following the path to that repository's own
originwould keep more comparisons. It would also read another repository's config, and its remote-tracking branches are not GitHub's (_places_check_asks). It is not done here._origin_urlis the one read of the url (git remote get-url origin, as before)._remote_repositoryand the NOTE's_origin_pathboth use it. Before,_origin_pathreadremote.origin.urlraw through_config_value.repo_shape.url_repositoryreturns None forrepo_shape.origin_is_a_path(remote_is_a_path, or afile://url). Otherwise it takes the url's path: after<scheme>://<host>/, after git's scp colon, or after]:for a bracketed host. It drops trailing/and one.git, and takes the last two segments, with case kept.ONE definition, in
scripts/repo_shape.py, imported byadopt-project.pyandshape-doctor.py. shape-doctor.py: a git repository is told of both ways in, the adoption and the scaffold, and the adoption line ends--org <your-org>where itsoriginnames no organisationplancan read, so pasting it is no longer refusedadopt-no-org(#545) #553 (b4c1f50) had given the doctor'sorigin_orga copy of the regex this PR replaces, held toplanby a parity test. On the merge with main that copy andplandisagreed (r521's F1), so the copy,_ORIGIN_REPOSITORY_RE, is deleted. Neither tool is copied into a project, and no template file imports the new names, so update-shape.pyapply --accept-local scripts/repo_shape.pycan keep an old helper that a newly copied file imports from, andmake bootstrapthen fails with ImportError #536's kept-helper rule (update-accept-local-missing-name, bbcfd34) is not touched.Main 64fc9a8 is merged into the branch as its own commit (2cfbe0e, clean). The doctor change follows in a separate commit.
_planned_orgreplaces the org block in_checked_plan_inputs. That function stays no more complex than Sonar allows; its block is now two lines._refuse_another_repositorytakesorg_given._org_read_fromsays "the source'sorigin" or "--source".With no repository read from a path, the path branch of
_rename_firstand_own_name_remediation(adopt-project.py:--organd--projectmust name the repository the source names, compared without case, soplanrefuses--project BillingServiceforacme/billing-serviceasadopt-not-the-sourceinstead of writing a plan whoseexecuteacts onacme/BillingService,checkfinds andexecuterefuses a plan edited to name another asplan-not-the-source, and a source whose own name the naming policy refuses is told to rename it first, never to retype--project(#499) #513's review, NIT-3) is unreachable, so it is removed. Rename-first always means on GitHub.Tests
tests/test_adopt_origin_repository.py: 28 new tests (9 functions). All 28 fail with the three changed files at main 64fc9a8 (that run fails 37: the 28 new tests, the 6 changed existing ones, and the doctor's[trailing-slash],[posix-path]and[file-url]).Existing tests changed because this PR reverses what they asserted:
test_adopt_project_is_the_source.py:test_plan_refuses_a_name_that_is_not_the_sources[hyphenated-source-retyped, typo]andtest_an_org_repo_source_is_the_repository_it_namesnow expect the adopt-project.pyplantakes the organisation from the source'soriginURL and runs it throughchecked_value("--org", ...), so an origin whose organisation part is not ASCII or holds a space (/x/café/repo.git,/x/my repos/repo.git,caf%C3%A9) endsplaninREFUSED unsafe-value: --org is 'café', a flag nobody passed, with a remediation that explains a leading-and never says to pass--org#427 naming. They pass no--org.test_a_name_read_from_a_path_says_soandtest_a_name_read_from_a_path_is_renamed_at_that_pathare removed. Their behaviour is reversed, and the new file covers it (test_a_path_origin_is_not_compared_and_plan_says_so,test_a_path_origin_gives_no_rename_first_remedy).test_adopt_git_reads.py:NO_ORGis the new sentence (test_plan_without_org_refuses_a_source_that_names_none, 3 rows).git@example.invalid:cafe/repo.git), with a not-UTF-8 url beside it. Its old spelling,../cafe/repo.git, is a path and now names nothing. These two rows pass on main by design.test_adopt_split_branch.py: the GitHub stand-in is a urlorigin,https://github.com/testorg/Northwind.git, fetched from the bare by path intorefs/remotes/origin/*. The bare's own path asoriginnow names nothing. These 4 tests pass on main and on this branch.test_shape_doctor.py: inORIGIN_ORGS,[trailing-slash]now expectsopensoft. It gains[posix-path](/srv/git/opensoft/Atlas.git) and[file-url], both expecting None. The parity test and the comment name the one shared reading.test_adopt_plan_yaml_quoting.py,test_adopt_tracking_branch.py: comments only.Revert table. Each change was reverted alone in a scratch clone of b3cc111, and the new and changed adopt files ran with the doctor's two
origintests (test_the_adoption_line_names_an_org_only_where_plan_reads_none,test_an_ancestors_origin_names_no_org_for_a_loose_directory):[hyphenated-source-retyped],[typo],test_an_org_repo_source_is_the_repository_it_names,test_plan_without_org_refuses_a_source_that_names_none[not-utf8, no-origin, no-pair]); the doctor's[trailing-slash],[posix-path],[file-url]/kepttest_a_url_names_its_repository_however_it_ends(7),test_a_url_ending_in_a_slash_is_the_repository_it_names(2), the doctor's[trailing-slash]test_a_path_names_no_repository_however_it_is_written(7),..._is_not_compared_and_plan_says_so(2),..._reads_alike_in_either_separator[slashes],..._gives_no_rename_first_remedy,test_a_path_origin_names_no_organisation(2), the doctor's[posix-path]and[file-url]..._is_not_compared_and_plan_says_so(2),..._reads_alike_in_either_separator(2)--org is ...againtest_an_org_read_from_origin_is_refused_by_where_it_came_fromadopt-not-the-source:--org X and ...againtest_a_mistyped_project_names_the_org_nobody_passed_by_its_source,[hyphenated-source-retyped],[typo],test_an_org_repo_source_is_the_repository_it_namesadopt-no-org: the old sentencetest_a_path_origin_names_no_organisation(2),test_plan_without_org_refuses_a_source_that_names_none(3)file://read as a url..._however_it_is_written[file-url], the doctor's[file-url]..._however_it_ends[bracketed-host]--sourcenamed as the origintest_an_org_repo_source_is_the_repository_it_names[trailing-slash],[posix-path]and[file-url]Full runs at b3cc111 (dirty 0) covered 75 test files: the 72 that
grep -l -E 'adopt-project|adopt_project|\bADOPT\b' tests/*.pyfinds, plustest_update_shape_kept_helper.py,test_git_helper_identity.pyandtest_family_member_name.py. The 72 includetest_shape_doctor.py,test_doctor_next_is_a_command.py,test_repo_hygiene.pyandtest_scaffold_leg_path_collisions.py. They ran with/usr/bin/python3 -m pytest, a stubghfirst on PATH,GH_TOKENbogus and an emptyGH_CONFIG_DIR:with
git-filter-repoon PATH: 5843 passed, 13 skipped, exit 0 (49 min 36 s)with it hidden (
PATH=<stub>:/usr/local/bin:/usr/bin:/bin): 5530 passed, 326 skipped, exit 0 (41 min 18 s)The branch merges main 64fc9a8 (merge commit 2cfbe0e, clean). That includes shape-doctor.py: a git repository is told of both ways in, the adoption and the scaffold, and the adoption line ends
--org <your-org>where itsoriginnames no organisationplancan read, so pasting it is no longer refusedadopt-no-org(#545) #553 (b4c1f50), which this PR now changes, so the full runs above are of the merge with that main. Main has since moved to a2243f1: openRepoShape --doctor says it writes nothing into the repository but a --placement-plan file you name, keeps its clone for the NEXT lines that name it, shows its synopsis description again, and refuses a second --placement-plan or a second path (#546) #580 and shape-doctor.py: a validator's verdict is a printedFINDINGorREFUSEDand any other non-zero exit is a crash, so a gate killed by a signal, ended byos._exit(1), holding conflict markers or failing argparse no longer "reports a finding", a crash of the standard's own naming script is CANNOT ANSWER instead ofINVALID (naming), and a pass that printedWARNINGornotelines is anotequoting them while a red row quotes its finding and never a warning (#410, #448) #557 changedshape-doctor.pyandtests/test_shape_doctor.py.git merge-treeof b3cc111 with a2243f1 is clean (tree 3edcd3c5), and neither change touches therepo_shapeimport,origin_org,check_the_way_inorORIGIN_ORGS. On a committed scratch merge with that tree,test_shape_doctor.py,test_doctor_next_is_a_command.pyandtest_adopt_origin_repository.pygave: withgit-filter-repoon PATH, 456 passed, 3 skipped, exit 0; with it hidden, 452 passed, 7 skipped, exit 0.The doctor's line, end to end at b3cc111, with git's global config isolated:
origin/srv/git/acme/Atlas.gitthe NEXT ends--org <your-org>. Pasted withacme, it plans with exit 0, the NOTE andorg: acme.https://github.com/acme/Atlas/it carries no--organd plans withorg: acme.Windows
C:\src\acme\Atlas.git,\\server\share\...) run on every platform. Paths a test creates aretmp_pathjoined withclones,x/café,x/my reposand<name>.git. All are legal on NTFS, and on Windows they are drive paths throughas_posix().PYTHONUTF8=1, which the Windows job sets."…\n"in bytes read back from a file.Path.write_textand text-mode stdin write\r\n), the new and changed files ran at b3cc111:test_adopt_origin_repository.py,test_adopt_project_is_the_source.py,test_adopt_git_reads.py,test_adopt_split_branch.py,test_adopt_tracking_branch.py,test_adopt_plan_yaml_quoting.py,test_shape_doctor.py. Result: 1013 passed, 3 skipped and 4 failed (exit 1).test_the_shim_runs_the_script_beside_it_and_fetches_nothing,test_the_shim_from_stdin_clones_the_standard_first,test_the_installed_doctors_next_lines_run_after_it_has_exitedandtest_the_shim_doctor_defaults_to_the_directory_you_are_in.refusing_networkwrites itsghandcurlstubs withPath.write_text, so the emulation turns their#!/bin/sh\ninto#!/bin/sh\r\n, which bash cannot execute. Those 4 tests are@WINDOWS_SKIP, so the Windows job never runs them.Not in this PR
adopt-manifest-invalidstill names a filled-in--orgas a flag. An organisation read from a url thatchecked_valueaccepts but the project'svalidate-manifest.pyrefuses (~x,@a,a+b,.,..) is refused as--org is '~x', which the project's own validate-manifest.py refuses. adopt-project.py:plannames an elector it took fromgit config user.nameby where it came from, so with no--elected-byand nogit config user.namethe refusal reads--elected-by (not given, sogit config user.name) is ''and no longer--elected-by is '', a flag nobody passed (#529) #567 (9f80939, adopt-project.pyplan: with no--elected-byand nouser.name, the refusal reads--elected-by is '', naming a flag that was never passed #529) now names such values through_manifest_flag_names(given), so anorgentry inFLAG_DEFAULTSwould name it by where it came from. It is left for Tracking: adopt-project.py, converting an existing repository in place #457's checklist.checkandexecuteprint no NOTE for a pathorigin. Onlyplandoes. They compare nothing with it, asplandoes not.originto the repository it names on disk, and to that repository's ownorigin.Known limits
originis compared with nothing. A mistyped--projector--orgfor a clone of a local clone or mirror plans with exit 0. The NOTE names the repositoryexecutewill act on.<org>/<repo>(/srv/git/acme/Atlas.git) needs--org. On main,planread it from the path. With--orgit plans, with the NOTE. The doctor's adoption line (shape-doctor.py, NOT A SHAPE ROOT on a git repository: print both ways in, as AGENTS.md says, and add--orgto the adopt line when there is noorigin#545, shape-doctor.py: a git repository is told of both ways in, the adoption and the scaffold, and the adoption line ends--org <your-org>where itsoriginnames no organisationplancan read, so pasting it is no longer refusedadopt-no-org(#545) #553) readsoriginthe same way, so for such a source it ends--org <your-org>, and pasted with the organisation filled in it plans.originrewritten byurl.<base>.insteadOfto a local path is read as that path.git remote get-urlapplies the rewrite, so a GitHub url sent to a local mirror names nothing and is not compared.https://gitlab.com/acme/Atlas.gitnamesacme/Atlas, as on main.checkno longer reads a pathorigin's remote-tracking branches as GitHub's._places_check_asksasksrefs/remotes/origin/*only where the source'soriginnames the assembly repository, and a path names none, so a split branch a mirror fetched from GitHub is not found bycheck;executeasks GitHub itself.checked_valuerefuses, given another--org, is a dead end.https://example.com/café/Atlas.gitwith--org acmeis refusedadopt-not-the-source, whose remediation offers--org café, which is refusedunsafe-value.Closes #521
Closes #427
🤖 Generated with Claude Code
Summary by Sourcery
Unify origin parsing across adoption and diagnostic tools so repository checks, organization inference, and remediation guidance handle URLs and local paths consistently.
Bug Fixes:
Enhancements:
Tests: