• Jeff King's avatar
    rev-list: detect broken root trees · 97dd512a
    Jeff King authored
    When the traversal machinery sees a commit without a root tree, it
    assumes that the tree was part of a BOUNDARY commit, and quietly ignores
    the tree. But it could also be caused by a commit whose root tree is
    broken or missing.
    
    Instead, let's die() when we see a NULL root tree. We can differentiate
    it from the BOUNDARY case by seeing if the commit was actually parsed.
    This covers that case, plus future-proofs us against any others where we
    might try to show an unparsed commit.
    Signed-off-by: 's avatarJeff King <peff@peff.net>
    Signed-off-by: 's avatarJunio C Hamano <gitster@pobox.com>
    97dd512a
list-objects.c 11.5 KB