From: Jeff King Date: Wed, 10 Apr 2019 02:13:25 +0000 (-0700) Subject: rev-list: detect broken root trees X-Git-Tag: v2.22.0-rc0~24^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/97dd512af7ce4afb4f638ef73b4770921c8ca3aa?hp=97dd512af7ce4afb4f638ef73b4770921c8ca3aa rev-list: detect broken root trees 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: Jeff King Signed-off-by: Junio C Hamano ---