]> git.ipfire.org Git - thirdparty/git.git/commit
t5309: create failing test for 'git index-pack'
authorDerrick Stolee <stolee@gmail.com>
Mon, 28 Apr 2025 20:24:44 +0000 (20:24 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Apr 2025 22:37:25 +0000 (15:37 -0700)
commitfd7fd7afc975a42dd60c96f57b83f2a4fc7e58c0
tree869cd0a78a0b4e5094b12a380d9ae2884ea78a4b
parent89d557b950c7a0581c12452e8f9576c45546246b
t5309: create failing test for 'git index-pack'

This new test demonstrates some behavior where a valid packfile is being
rejected by the Git client due to the order in which it is resolving
REF_DELTAs.

The thin packfile has a REF_DELTA chain A->B->C where C is not included
in the packfile. However, the client repository contains both C and B
already. Thus, 'git index-pack' is able to resolve A before resolving B.

When resolving B, it then attempts to resolve any other REF_DELTAs that
are pointing to B as a base. This "revisits" A and complains as if there
is a cycle, but it did not actually detect a cycle.

A fix will arrive in the next change.

Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5309-pack-delta-cycles.sh