aboutsummaryrefslogtreecommitdiff
path: root/fast-import.c
diff options
context:
space:
mode:
authorDmitry Ivankov <divanorama@gmail.com>2011-08-15 00:32:23 +0600
committerJunio C Hamano <gitster@pobox.com>2011-08-14 14:40:00 -0700
commit9a0edb79f2f00c79b9dced22f67d226f6bb9c741 (patch)
treee78e88fff3d4aa857e6a394cf44e56c8ce4ef7da /fast-import.c
parent0906f6e14e6e9df0c4ea4edb08ebe9f5d16c2391 (diff)
downloadgit-9a0edb79f2f00c79b9dced22f67d226f6bb9c741.tar.gz
git-9a0edb79f2f00c79b9dced22f67d226f6bb9c741.tar.xz
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>
Diffstat (limited to 'fast-import.c')
0 files changed, 0 insertions, 0 deletions