fast-import: add a test for tree delta base corruption
commit9a0edb79f2f00c79b9dced22f67d226f6bb9c741
authorDmitry Ivankov <divanorama@gmail.com>
Sun, 14 Aug 2011 18:32:23 +0000 (15 00:32 +0600)
committerJunio C Hamano <gitster@pobox.com>
Sun, 14 Aug 2011 21:40:00 +0000 (14 14:40 -0700)
treee78e88fff3d4aa857e6a394cf44e56c8ce4ef7da
parent0906f6e14e6e9df0c4ea4edb08ebe9f5d16c2391
fast-import: add a test for tree delta base corruption

fast-import is able to write imported tree objects in delta format.
It holds a tree structure in memory where each tree entry may have
a delta base sha1 assigned. When delta base data is needed it is
reconstructed from this in-memory structure. Though sometimes the
delta base data doesn't match the delta base sha1 so wrong or even
corrupt pack is produced.

Add a small test that produces a corrupt pack. It uses just tree
copy and file modification commands aside from the very basic commit
and blob commands.

Signed-off-by: Dmitry Ivankov <divanorama@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9300-fast-import.sh