diff --git a/list-objects.c b/list-objects.c
index 61f6cc98d917c3e4395ec397ac74df6a40eeb07f..838b6a732e4758265432cbc9c8e8fc81568a2b50 100644 (file)
--- a/list-objects.c
+++ b/list-objects.c
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++) {