]> git.ipfire.org Git - thirdparty/git.git/blobdiff - list-objects.c
Merge branch 'jc/maint-rev-list-culled-boundary' into maint
[thirdparty/git.git] / list-objects.c
index 8953548c07bb36f20798c7ca344d07960c22618c..44fa5a92e29815cbee54f9954c2ceac8e1262811 100644 (file)
@@ -148,7 +148,12 @@ void traverse_commit_list(struct rev_info *revs,
        struct commit *commit;
 
        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++) {