X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=list-objects.c;h=838b6a732e4758265432cbc9c8e8fc81568a2b50;hb=9fee24cac87078ae48b5a74ecafaca751f5edfd6;hp=61f6cc98d917c3e4395ec397ac74df6a40eeb07f;hpb=cdc34664d4bb86063062dd63183dfb6b9ebf4772;p=git.git diff --git a/list-objects.c b/list-objects.c index 61f6cc98d..838b6a732 100644 --- a/list-objects.c +++ b/list-objects.c @@ -173,7 +173,12 @@ void traverse_commit_list(struct rev_info *revs, strbuf_init(&base, PATH_MAX); while ((commit = get_revision(revs)) != NULL) { - add_pending_tree(revs, commit->tree); + /* + * an uninteresting boundary commit may not have its tree + * parsed yet, but we are not going to show them anyway + */ + if (commit->tree) + add_pending_tree(revs, commit->tree); show_commit(commit, data); } for (i = 0; i < revs->pending.nr; i++) {