mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:15:51 +01:00
[PR #1226] [MERGED] merge_check: separate Git revisions from checkout paths (OLD-9973) #1258
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1258
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1226
Author: @IlyassRS3
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @QemmHD
Base:
main← Head:carry/old-9973-merge-check-rev-paths📝 Commits (1)
d603159merge_check: separate Git revisions from checkout paths📊 Changes
2 files changed (+21 additions, -6 deletions)
View changed files
📝
scripts/merge_check.py(+3 -3)📝
tests/test_merge_check.py(+18 -3)📄 Description
What changed
Carries forward
old-pr/9973(draft #242, original commit by @nandanp1) rebased cleanly onto currentmain(f35d045cc), preserving the original author commit and retainingOLD-10032'sout.split("\n")line splitting inprior_merges.scripts/merge_check.py: append--after revision arguments ingit log,git diff, andgit showso working-tree files whose names collide with a branch name, commit/tree SHA, or<rev>:<path>spec do not trigger Git'sambiguous argument ... both revision and filenameerror.tests/test_merge_check.py: extendrun_checkto acceptmain=and assert exit code != 2 before JSON parsing; add collision subtests for working-tree files matchingmain, themaincommit SHA, the merged tree SHA, and (on POSIX)main:docs/notes.md; update thegit showmock list for the trailing--.Item ID
OLD-9973(carries forwardold-pr/9973/ draft #242, #17)Verification
Tested on macOS 27.2.1 (Apple M5 arm64), Python 3.14, Git (no game files, no GPU, standard library only):
python3 -I tests/test_merge_check.py -v-> 24/24 OKscripts/merge_check.pytoupstream/mainwhile keepingtests/test_merge_check.py) -> FAILED (6 failures), hitting Git'sfatal: ambiguous argument ...: both revision and filenameon all 4 collision cases (main, commit SHA, tree SHA,main:docs/notes.md) and bothshow ... --mock assertions; restoring the fix returns to 24/24 OK.python3 -m compileall -q scripts/merge_check.py tests/test_merge_check.py-> OKpython3 -I scripts/check_no_game_data.py scripts/merge_check.py tests/test_merge_check.py-> OKpython3 -I tests/test_ci_registration.py-> 15/15 OKpython3 -I tests/test_text_write_line_endings.py-> 3/3 OKChecklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.