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
adopt-project.py check: follow-ups of PR #1031 (#910): on git 2.43 an init.defaultBranch git will not take passes check and execute stops after both legs exist; _resolved and _answers still use TMPDIR, hooks and a plain git init #1083
Found by: w910, the writer of PR #1031 (#910), and r1031, its independent review of round 2 at 74c17705. PR #1031 makes each of check's throwaway git inits pass -b throwaway, so an init.defaultBranch that git will not take stops none of the questions asked in them. On git 2.55, which CI runs, that is right. Line numbers are at 74c17705.
(a) On git 2.43, an invalid init.defaultBranch passes check, and execute then stops after both legs exist (r1031's SHOULD-R2-1, measured)
Measured on git 2.43, with the global config holding [init] defaultBranch = a..b:
Head
check --work-dir
execute --local-remote-dir
c7a3ff16
exit 2, REFUSED git-failed (the throwaway git init)
exit 2, REFUSED extracting the spec leg, fatal: invalid branch name: init.defaultBranch = a..b; both leg repositories exist; "NOTHING has been rolled back"
On git 2.55, git clone takes the name (CI run 39404718064: returncode 0), so there the split goes through. The config is rare and invalid. But execute stopping after both legs exist is the class of failure that #168 and #524 removed.
Make check ask the split's own clone: git -c core.hooksPath=<empty> clone -q --no-checkout --shared <source> <throwaway>/clone, under _inherited_env(), in the work directory. A failure there is adopt-git-unasked. That answers right on every git version.
(b) _resolved and _answers still use TMPDIR, hooks and a plain git init
For a source with a registered submodule, check still stops with exit 2 at _answers' plain git init -q <TMPDIR>/openreposhape-ask-*, which exits 128 under the same config.
Move both to the way the throwaway repositories work: in the work directory, with no hooks, --template=<empty> and -b.
(c) Smaller gaps
The docstring at adopt-project.py:466 still says the throwaways are made in TMPDIR.
Case twins under core.ignorecase are untested on a case-insensitive disk.
(r1031's NIT-R2-2) Only tests/test_adopt_relative_submodule_url.py::test_an_absolute_url_resolves_nothing kills the unmade-work-dir mutant. A row in tests/test_adopt_check_throwaway_repos.py that opens a Source on a missing work directory would pin it.
CLAIMED — lane openRepoShape-1, session 300f8f46-004a-4e72-8587-4f192be2e108@Eagle, 2026-10-21T10:37:04Z, for #1083
Logged in lanes/log/openRepoShape-1.md at 91e36e8d613734aaf87bece3d24b82217b8c805f.
The three reads (lane-collision-protocol Rule 1):
1. existing `CLAIMED —` comments on opensoft/openRepoShape#1083:
none
2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1083"`, kept where the row or its body names `#1083`:
1031 adopt-project.py: `check`'s throwaway repositories are made in the work directory with the source's object format and no hook of this machine's; a path git refuses is `plan-path-git-refuses`, a repository git cannot make there `adopt-git-unasked` (#910) fix/910-check-throwaway-repos MERGED
3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1083` as a whole token:
none
Activity
adopt-project.py: `check`'s throwaway repositories are made in the wo…
brettheap commentedon Oct 21, 2026
CLAIMED — lane openRepoShape-1, session 300f8f46-004a-4e72-8587-4f192be2e108@Eagle, 2026-10-21T10:37:04Z, for #1083
Logged in
lanes/log/openRepoShape-1.mdat91e36e8d613734aaf87bece3d24b82217b8c805f.The three reads (lane-collision-protocol Rule 1):
tests/test_adopt_reencoded_files.py: the docstring of `test_a_link_th…
adopt-project.py: check's clone of the source takes the -c settings a…
tests/test_adopt_check_throwaway_repos.py: the rows that give check a…
adopt-project.py: a refused command's REFUSED block spells each chara…