commit: add generation number to struct commit
[gitweb.git] / packfile.c
index b1d33b646a030865b8ff65028cbf360465ed029b..88ba8191518711d24fb42fdd2cd0bb3f70fd2397 100644 (file)
@@ -1925,7 +1925,7 @@ static int add_promisor_object(const struct object_id *oid,
                struct commit *commit = (struct commit *) obj;
                struct commit_list *parents = commit->parents;
 
-               oidset_insert(set, &commit->tree->object.oid);
+               oidset_insert(set, get_commit_tree_oid(commit));
                for (; parents; parents = parents->next)
                        oidset_insert(set, &parents->item->object.oid);
        } else if (obj->type == OBJ_TAG) {