Commit Graph

16 Commits

Author SHA1 Message Date
f53815430d Merge pull request #1248 from TheGeogeo/test/merge-check-old-git
tests: skip merge_check cases on a git without merge-tree --write-tree (TEST-MERGE-CHECK-OLD-GIT)
2026-11-28 20:27:27 +01:00
ead43b5787 merge_check: distinguish legacy-encoded lines before reporting duplicates 2026-11-26 00:23:29 -05:00
6a4500d889 tests: skip merge_check cases on a git without merge-tree --write-tree (TEST-MERGE-CHECK-OLD-GIT)
scripts/merge_check.py needs git 2.38 or newer. On an older git the suite failed with JSON decoding errors instead of saying so.
2026-11-24 21:48:47 +01:00
d603159109 merge_check: separate Git revisions from checkout paths 2026-11-24 21:35:39 +01:00
52742602f9 merge_check: preserve Unicode line separators in squash subjects 2026-11-24 20:29:52 +05:30
2077d28e1f Merge pull request #621 from DesertGamer/fix/merge-check-xdg-ignore
tests: keep merge_check independent of the user's git ignore file (TEST-MERGE-CHECK-XDG-IGNORE)
2026-11-24 08:09:57 -05:00
283c8818b4 tests: keep merge_check independent of the user's git ignore file
The test isolated git with GIT_CONFIG_GLOBAL and GIT_CONFIG_NOSYSTEM, but git
still read its default global ignore file under XDG_CONFIG_HOME. A user rule
such as docs/ left the first commit in setUp empty, so all 20 tests failed.
The test now points XDG_CONFIG_HOME at its temporary folder.
2026-11-24 14:02:49 +04:00
5abe553f5f merge_check: exit 2 when git cannot be run (MERGE-CHECK-GIT-MISSING)
The docstring promises exit 2 on a git error. When git is not on PATH,
subprocess.run raised FileNotFoundError, which escaped main() as a
traceback with exit 1. The git() helper now turns the OSError into a
GitError, so the message reads "merge_check: cannot run git: ..." and
the exit code is 2.

Tests cover a patched FileNotFoundError, an empty PATH, and a folder
that is not a repository (git exits nonzero; still exit 2).
2026-11-24 10:53:11 +01:00
3faeaf2ca6 Merge remote-tracking branch 'origin/pr/8980'
# Conflicts:
#	scripts/merge_check.py
2026-11-23 17:43:03 -05:00
920b781090 merge_check: keep gitlink updates out of text comparison 2026-11-23 21:35:44 +00:00
5b88d58495 merge_check: report Git blob read failures
Use the diff to identify new files and surface required blob read failures through the existing Git error exit.
2026-11-23 21:28:27 +00:00
21016cf7ae fix(merge-check): detect duplicates across retained blank lines 2026-11-23 16:53:02 -03:00
9f53c502ed scripts/merge_check.py: detect squash-merged PRs as prior merges (#6669)
Squash-merged after diff review of PR #6669
2026-11-23 11:01:07 -06:00
48ff424ec9 merge_check: scan main history once per batch of pull requests (#6762)
Squash-merged after diff review of PR #6762
2026-11-23 10:46:04 -06:00
ab235a2195 merge_check: detect duplicate text in quoted patch paths (#6842)
Squash-merged after diff review of PR #6842 - merge_check: detect duplicate text in quoted patch paths
2026-11-23 09:53:24 -06:00
295dbbad08 scripts/merge_check.py: before a merge round, say whether a PR is already on main or would double text (#6355)
Squash-merged after review of PR #6355 - scripts/merge_check.py: before a merge round, say whether a PR is already on main or would double text
2026-11-23 08:14:51 -06:00