Commit Graph
14 Commits
Author SHA1 Message Date
Dean 92bfca720e Merge pull request #11072 from JaceTheBlu/fix/tools-git-version
fix(tools): name the git version merge-tree needs in pr_overlap and check_main_sync
2026-10-27 18:31:34 +13:00
Dean a25485de03 Merge pull request #10902 from hakarrr/patch-3
fix(tools): separate revisions from working-tree paths in check_main_sync
2026-10-27 05:30:26 +13:00
Dean b7681c0cb1 Merge pull request #10380 from Bram910/fix/main-sync-squash-prs
fix(tools): report squash-merged PRs in main sync checks
2026-10-26 11:04:02 +13:00
JaceTheBluandClaude Opus 5.5 f53ee43a43 fix(tools): name the git version merge-tree needs in pr_overlap and check_main_sync
Both tools merge with git merge-tree --write-tree, which needs git 2.38,
and pr_overlap's pairwise merges also pass --merge-base, which needs
git 2.40. On an older git, such as 2.34 on Ubuntu 22.04, they stopped
with git's merge-tree usage text and nothing said what was wrong. A
failing merge now reports the version it needs and the one found when
git is older; on a recent enough git the error is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-25 17:53:33 +01:00
hakarrr 73681f165a fix(tools): separate revisions from working-tree paths in check_main_sync 2026-10-25 13:51:07 +05:30
roboterspinne dfd99b7cb5 fix(tools): name a missing head instead of reporting no common ancestor in check_main_sync
report() turned every nonzero exit of git merge-base into "<head> and
<base> have no common ancestor", so a mistyped or unfetched --head, a
tree or a blob was reported as unrelated history and git's own error was
dropped. Now only exit status 1 keeps that message, and any other
failure raises "git merge-base failed: <stderr>" like the merge-tree
call in conflicts(). git merge-base returns 1 when the histories share
no commit and dies with 128 when a revision does not resolve to a
commit. The tool still exits 2 in both cases, and
test_unrelated_histories_are_an_error now also checks that an invalid
head reports git's own merge-base error and not a missing common
ancestor.
2026-10-24 22:28:37 +02:00
Bram910 c9ace48eb7 fix(tools): report squash-merged PRs in main sync checks 2026-10-23 22:05:30 +02:00
Dean fc9d8308a1 Merge pull request #9689 from jotitadev/fix/main-sync-pulls-from-subdirectory
fix(tools): read check_main_sync paths from the top of the repository
2026-10-23 19:26:46 +13:00
Jota 893dba7850 fix(tools): read check_main_sync paths from the top of the repository 2026-10-22 05:29:25 -03:00
emirplus 87465459f0 fix(tools): wrap entrypoint in main with stream reconfigure in check_main_sync 2026-10-21 20:58:45 +03:00
emirplus 6de562f8a3 fix(tools): fetch upstream tracking base before resolving default base 2026-10-19 18:51:14 +03:00
GalaxyGamingFRandClaude Opus 5.5 a70dea62e7 fix(check_main_sync): fetch an explicit --base before resolving it
main() resolved the base before running --fetch, so an explicit base on a
remote that was never fetched failed with "no base ref found" and never
fetched. The fetch is now a local helper and runs first when --base is
given; the default base still resolves first, then fetches.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-15 14:01:15 -07:00
Tomás Ortellado 758e69b567 fix(tools): preserve main sync reports on limited encodings 2026-10-15 10:12:46 -03:00
Dextroid17 851b66bb2a feat(tools): report whether a branch is in step with main 2026-10-13 09:40:20 -04:00