pack-objects: refactor code into compute_layer_order()
[gitweb.git] / reflog-walk.c
index 5008bbf6ada3707009722e3a3ca5b37437fbfb24..3561a8b955811c52de697647d413e33b4aa70cc2 100644 (file)
@@ -305,7 +305,8 @@ static struct commit *next_reflog_commit(struct commit_reflog *log)
 {
        for (; log->recno >= 0; log->recno--) {
                struct reflog_info *entry = &log->reflogs->items[log->recno];
-               struct object *obj = parse_object(&entry->noid);
+               struct object *obj = parse_object(the_repository,
+                                                 &entry->noid);
 
                if (obj && obj->type == OBJ_COMMIT)
                        return (struct commit *)obj;