Convert struct object to object_id
[gitweb.git] / builtin / reflog.c
index cf1145e635c559206a6b0d61e41321fa914e5e42..9b8f9bbb9c62fe137c9b496bd465a4034debf5ae 100644 (file)
@@ -126,7 +126,7 @@ static int commit_is_complete(struct commit *commit)
                struct commit_list *parent;
 
                c = (struct commit *)study.objects[--study.nr].item;
-               if (!c->object.parsed && !parse_object(c->object.sha1))
+               if (!c->object.parsed && !parse_object(get_object_hash(c->object)))
                        c->object.flags |= INCOMPLETE;
 
                if (c->object.flags & INCOMPLETE) {
@@ -152,7 +152,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.sha1)) {
+                       if (!tree_is_complete(get_object_hash(c->tree->object))) {
                                is_incomplete = 1;
                                c->object.flags |= INCOMPLETE;
                        }