Signed-off-by: Martin Koegler <mkoegler@xxxxxxxxxxxxxxxxx> --- reachable.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/reachable.c b/reachable.c index 823e324..937af57 100644 --- a/reachable.c +++ b/reachable.c @@ -150,7 +150,8 @@ static int add_one_reflog(const char *path, const unsigned char *sha1, int flag, static void add_one_tree(const unsigned char *sha1, struct rev_info *revs) { struct tree *tree = lookup_tree(sha1); - add_pending_object(revs, &tree->object, ""); + if (tree) + add_pending_object(revs, &tree->object, ""); } static void add_cache_tree(struct cache_tree *it, struct rev_info *revs) -- 1.5.4.1.g96b77 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html