Merge branch 'js/chain-lint-attrfix'
[gitweb.git] / reflog-walk.c
index e0048a88d8f343839100d6e87bc5316ed3de85f1..3a25b27d8f8dbd49b4c33c81cb6af3c92f59759d 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;