Code

list-objects.c: don't add an unparsed NULL as a pending tree
authorJunio C Hamano <gitster@pobox.com>
Mon, 14 Mar 2011 19:29:50 +0000 (12:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Mar 2011 19:33:58 +0000 (12:33 -0700)
commit6e7d0efa9058aa61147d9d18b33bd046055584e4
tree5dbf761777e72b22754887370aff3927f82ca200
parent8d2dfc49b199c7da6faefd7993630f24bd37fee0
list-objects.c: don't add an unparsed NULL as a pending tree

"git rev-list --first-parent --boundary $commit^..$commit" segfaults on a
merge commit since 8d2dfc4 (process_{tree,blob}: show objects without
buffering, 2009-04-10), as it tried to dereference a commit that was
discarded as UNINTERESTING without being parsed (hence lacking "tree").

Signed-off-by: Junio C Hamano <gitster@pobox.com>
list-objects.c
t/t6110-rev-list-sparse.sh [new file with mode: 0755]