sha1_file: restore OBJECT_INFO_QUICK functionality
[gitweb.git] / builtin / fast-export.c
index da42ee5e604b72a8b3ac1edf38d8f75bd6805419..2fb60d6d48eae68affdcf64f6dbab0282408f393 100644 (file)
@@ -650,11 +650,10 @@ static void handle_tail(struct object_array *commits, struct rev_info *revs,
 {
        struct commit *commit;
        while (commits->nr) {
-               commit = (struct commit *)commits->objects[commits->nr - 1].item;
+               commit = (struct commit *)object_array_pop(commits);
                if (has_unshown_parent(commit))
                        return;
                handle_commit(commit, revs, paths_of_changed_objects);
-               commits->nr--;
        }
 }