]> git.ipfire.org Git - thirdparty/git.git/commit
t/t5318-commit-graph.sh: test generation zero transitions during fsck
authorTaylor Blau <me@ttaylorr.com>
Mon, 21 Aug 2023 21:34:40 +0000 (17:34 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Aug 2023 23:07:34 +0000 (16:07 -0700)
commitce7629a315459c12451ee9071db22f8b0e26a4eb
tree7f5b57d0d9f39491aa9e213c09e44aebc1f0047e
parentcc9c9a00a50dc479ef59c7d2d03d1e3fcc8752a3
t/t5318-commit-graph.sh: test generation zero transitions during fsck

The second test called "detect incorrect generation number" asserts that
we correctly warn during an fsck when we see a non-zero generation
number after seeing a zero beforehand.

The other transition (going from non-zero to zero) was previously
untested. Test both directions, and rename the existing test to make
clear which direction it is exercising.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5318-commit-graph.sh