You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
setup.sh, install.sh and the openRepoShape command: each keeps its own copy of the old ref rule (*..* | *.lock), so a ref git refuses part by part (a.lock/b, a/.b, a//b) clones the standard before it fails #874
Goal: every shell entry point that checks a ref before git checkout refuses the names git refuses part by part, as setup-project.py's checked_ref does after #857, before anything is cloned.
Filed by lane openRepoShape-5, from writer w857's checklist candidate on #857's PR (#873) and rv873's S2 (#873 issuecomment-6245576863). Measured at #873's head 79a33f11. path:line is at that head.
Lands after: lane 5's #857, PR #873 (fix/857-setup-dry-run-offers, 79a33f11, stacked on #811). It gives setup-project.py git's per-part rule (why_not_a_ref): no empty part (// or a trailing /), no part starting with ., no part ending in .lock, and no name ending in ..
Lines
Three bash copies keep the old rule, *..* | *.lock, which tests only the whole name.
Where:
setup.sh:236, for --shape-ref. Its comment at :212 says it "Mirrors setup-project.py's REF_RE".
openRepoShape:588, ref_fault, for $OPENREPOSHAPE_REF.
install.sh:151, for the ref it installs.
Measured by rv873 at 79a33f11: it ran cat setup.sh | bash -s -- --org demoorg --project Sample --shape-ref <ref> --local-remote-dir ..., with OPENREPOSHAPE_REPO set to a local clone.
a.lock/b, a/.b and a//b each print (0) self-bootstrap and clone the standard. Each then ends error: pathspec '<ref>' did not match any file(s) known to git, exit 1.
Direction: hold each copy to git's rule part by part, as why_not_a_ref does. Where a copy only gates a later setup-project.py run, it may instead say so and leave the check to that run. Keep each refusal's sentence true of the rule it states, and keep setup.sh:212 true.
Verify:
A table test that feeds the same names to each shell copy and to git check-ref-format --branch, and holds them to one answer, under git 2.43 and 2.47.1. The names: a.lock/b, x/y.lock/z, release.lock/v1, a/.b, a/.b/c, a//b, a/b/, a.lock/, a., topic.locked, v1.0.0.
A mutant that puts *.lock back as the only check, caught.
tests/test_setup_sh.py (:898), the tests of install.sh and of the openRepoShape command, and tests/test_repo_hygiene.py pass on Linux.
CLAIMED — lane openRepoShape-2, session 81650e29-c906-4fe8-96c9-55580bfe0c44@Eagle, 2026-10-18T04:28:12Z, for #874
Logged in lanes/log/openRepoShape-2.md at 36f69f09fe93005db9ae81510c77046c6d304ef5.
The three reads (lane-collision-protocol Rule 1):
1. existing `CLAIMED —` comments on opensoft/openRepoShape#874:
none
2. `gh pr list --repo opensoft/openRepoShape --state all --search "#874"`, kept where the row or its body names `#874`:
none
3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `874` as a whole token:
none
Activity
brettheap commentedon Oct 18, 2026
(lane openRepoShape-2, 2026-10-18T04:27:49Z) Claimed by lane openRepoShape-2.
openRepoShape'sref_fault: openRepoShape:$OPENREPOSHAPE_REPOand$OPENREPOSHAPE_REFare checked once, before--versionanswers and before any fetch, so a control character or a character a terminal draws as another in either is refused, never printed or sent #872 (openRepoShape:--versionand two fetch refusals print$OPENREPOSHAPE_REPOand$OPENREPOSHAPE_REFwith no check, so an escape or a bidi override in either reaches the terminal as typed, and a scaffold run sends its fetch with them #866) moves it (:793ata2af74a0) and splits its character checks out asref_character_fault, which now runs before any request.install.shandopenRepoShape: install.sh and openRepoShape: a$OPENREPOSHAPE_BIN_DIRthe bytes refuse is read again in the locale's own charset, so a GB18030, GBK or Shift_JIS name that holds no control character and nothing drawn as another is placed, and where nothing can read it the bytes decide as before #867 (install.sh and openRepoShape: the control-character check matches bytes, so a GBK or GB18030 name holding0xC2and a byte from0x80to0x9Fis refused as a control, and a lone0x9B, which an 8-bit terminal acts on, is placed #858) edits both (the bin directory's byte check), so theinstall.sh:151line moves too (:168at8bb85cbf).setup.sh:236is the third copy.--dry-runmakes none of the preflight's offers and--shape-refis held to git's rule part by part, so a rehearsal no longer writes git's global config anda.lock/bis refused before the clone (#857) #873, as the body says, and after install.sh and openRepoShape: a$OPENREPOSHAPE_BIN_DIRthe bytes refuse is read again in the locale's own charset, so a GB18030, GBK or Shift_JIS name that holds no control character and nothing drawn as another is placed, and where nothing can read it the bytes decide as before #867 and openRepoShape:$OPENREPOSHAPE_REPOand$OPENREPOSHAPE_REFare checked once, before--versionanswers and before any fetch, so a control character or a character a terminal draws as another in either is refused, never printed or sent #872. Lane 2 writes it on a merge of install.sh and openRepoShape: a$OPENREPOSHAPE_BIN_DIRthe bytes refuse is read again in the locale's own charset, so a GB18030, GBK or Shift_JIS name that holds no control character and nothing drawn as another is placed, and where nothing can read it the bytes decide as before #867 and openRepoShape:$OPENREPOSHAPE_REPOand$OPENREPOSHAPE_REFare checked once, before--versionanswers and before any fetch, so a control character or a character a terminal draws as another in either is refused, never printed or sent #872, and restacks it onto main as they land.$OPENREPOSHAPE_BIN_DIRthe bytes refuse is read again in the locale's own charset, so a GB18030, GBK or Shift_JIS name that holds no control character and nothing drawn as another is placed, and where nothing can read it the bytes decide as before #867 and openRepoShape:$OPENREPOSHAPE_REPOand$OPENREPOSHAPE_REFare checked once, before--versionanswers and before any fetch, so a control character or a character a terminal draws as another in either is refused, never printed or sent #872, above.Lane: openreposhape-2 (openRepoShape-2)
brettheap commentedon Oct 18, 2026
CLAIMED — lane openRepoShape-2, session 81650e29-c906-4fe8-96c9-55580bfe0c44@Eagle, 2026-10-18T04:28:12Z, for #874
Logged in
lanes/log/openRepoShape-2.mdat36f69f09fe93005db9ae81510c77046c6d304ef5.The three reads (lane-collision-protocol Rule 1):
tests/test_setup_sh.py and tests/test_openreposhape_command.py: the t…
Merge lane 2's #867 final head 0ccda48 (fix/858-bin-dir-bytes, landed…
Merge main's squash 5c54af2 of #867 (#858) as the stacked base of #874:…
setup.sh, install.sh, openRepoShape and tests/conftest.py: the ref ru…
Merge lane 2's #872 final head a1cad96 (fix/866-launcher-repo-ref, la…
Merge main's squash c5d0bde of #872 (#866) as the stacked base of #874:…
setup-project.py: a passed-through `--dry-run` makes none of the pref…
docs/release-notes/v1.1.1.md: the v1.1.1 notes take RV883's NIT list …
standard.py: the package's `openRepoShape` refuses a repository or re…
install.sh, openRepoShape, setup.sh: rv986's round 1 for #940 — a /re…