]> git.ipfire.org Git - thirdparty/git.git/commit
t6600: add test for merge-base early exit with clock skew
authorKristofer Karlsson <krka@spotify.com>
Mon, 29 Jun 2026 13:19:20 +0000 (13:19 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 29 Jun 2026 17:40:35 +0000 (10:40 -0700)
commit18cf52c8a590d00c333d3d20edc2cf8c11c8ab92
tree6e4f936869f0de915b86b19bf784e55e5f950502
parent93e5b1680e30650ceca889a56429a055f17033bd
t6600: add test for merge-base early exit with clock skew

Add a topology where the correct merge base (M2) has a lower
committer date than its ancestor (M1) due to clock skew.  With a
v1 commit graph (topological levels only, no corrected commit
dates), paint_down_to_common() falls back to commit-date ordering.
In that mode, M1 pops before M2, acquires both paint sides, and
the !FIND_ALL early exit fires -- returning the wrong merge base.

Mark the test as test_expect_failure to document the bug; the next
commit will fix it.

Signed-off-by: Kristofer Karlsson <krka@spotify.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6600-test-reach.sh