git-send-email: fix missing space in error message
[gitweb.git] / list-objects.c
index 61f6cc98d917c3e4395ec397ac74df6a40eeb07f..838b6a732e4758265432cbc9c8e8fc81568a2b50 100644 (file)
@@ -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++) {