Merge branch 'sb/object-store-grafts' into sb/object-store-lookup
[gitweb.git] / builtin / reflog.c
index a89bd1dd25252ddfe5ad6b32ee89950d3a4b258f..009119299529d5c93f02d5f8dc2363f6e29f0f9c 100644 (file)
@@ -1,6 +1,7 @@
 #include "builtin.h"
 #include "config.h"
 #include "lockfile.h"
+#include "object-store.h"
 #include "commit.h"
 #include "refs.h"
 #include "dir.h"
@@ -154,7 +155,7 @@ static int commit_is_complete(struct commit *commit)
                for (i = 0; i < found.nr; i++) {
                        struct commit *c =
                                (struct commit *)found.objects[i].item;
-                       if (!tree_is_complete(&c->tree->object.oid)) {
+                       if (!tree_is_complete(get_commit_tree_oid(c))) {
                                is_incomplete = 1;
                                c->object.flags |= INCOMPLETE;
                        }