Repository navigation
Conversation
… 2.38 merge-tree --write-tree is new in git 2.38. An older git reads the option as a revision, so the tool's only message was git's own "fatal: unknown rev --write-tree", and tests/test_merge_check.py gave 14 errors (seen with git 2.37.3 first on PATH, the one Laragon bundles). - scripts/merge_check.py: when merge-tree --write-tree fails, ask git --version; on a git before 2.38 the error is one line naming the release it needs and the one it found, still exit 2. Any other failure keeps git's message, and nothing is asked when merge-tree works. - tests/test_merge_check.py: the cases that reach merge-tree skip with that reason on an older git instead of erroring; four new cases cover the message, the unchanged message on a new enough git, which releases count as old, and reading the release. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Tested 3e8f974 on Arch Linux, Python 3.14.10, CPU only: pass — first Linux check. tests/test_merge_check.py 20/20 OK. Negative control: base script → loader AttributeError (no git_release); restored, green again. No game files. AI-assisted. |
|
Tested 3e8f974 on Windows 11 Pro (10.0.26300), Python 3.14.7, CPU only (git 2.x for Windows, newer than 2.38, so the old-git path is exercised only by the tests): pass.
AI-assisted (Claude Code). |
|
Tested 3e8f974 on Windows 11 (CPU only, no GPU needed): pass Windows 11 Pro, Python 3.14.7, no GPU or game files involved; pytest/numpy/Pillow pinned from
AI-assisted (Claude Code, Claude Opus 5.5). |
|
Tested
|
Claimed in the coordination issue as: new TEST item, claim in #8344 (no ID yet). Depends on: nothing open.
What and why
scripts/merge_check.pyusesgit merge-tree --write-tree, which is new in git 2.38. Its docstring says so, but nothing checks it. A git before 2.38 reads--write-treeas a revision, so on such a PC the tool's only message is git's own:and
python -I tests/test_merge_check.pygives 14 errors out of 16 tests. I hit it because the firstgiton this PC's PATH is 2.37.3, the one Laragon bundles; Git for Windows 2.52 is further down.The change:
scripts/merge_check.py: whenmerge-tree --write-treefails, askgit --version. On a git before 2.38 the error is one line that names the release needed and the one found, still exit 2:Any other
merge-treefailure keeps git's message as before, and a release that cannot be read is not called old.git --versionis asked only after a failure, so a run that works starts no extra process.tests/test_merge_check.py: the cases that reachmerge-treeskip with that reason on an older git instead of erroring. Four new cases, which run on any git: the one-line message, the unchanged message on a new enough git, which releases count as old, and reading the release fromgit --version.Overlap: #7443, #7468, #7291, #7660, #7918, #8016 and #8291 also edit these two files, for other reasons. I'll rebase on whichever lands first.
Tested
Windows 11 26200, Python 3.12.6, at
3e8f9743(basemain6dda0630). No game files; no GPU is involved.mainfatal: unknown rev --write-treemain'sscripts/merge_check.pyand this branch's test file, the test file does not import (merge_checkhas nogit_release), on either git.python -m compileall -q scripts tests/test_merge_check.pyandgit diff --check: clean.tests/test_ci_registration.py: 14 OK.Not tested: a git older than 2.37, and macOS.
Checklist
docs/design.md, with how it was confirmed. (Not applicable.)AI-assisted (Claude Code).
🤖 Generated with Claude Code