rev-list: allow cached objects in existence check
[gitweb.git] / builtin / rev-list.c
index 49d6deed7012cb2c529ad971c6e45abf654fe097..877b6561f4aa8f50fd77dfa6a8e5c23dd8708c90 100644 (file)
@@ -237,7 +237,7 @@ static inline void finish_object__ma(struct object *obj)
 static int finish_object(struct object *obj, const char *name, void *cb_data)
 {
        struct rev_list_info *info = cb_data;
-       if (!has_object_file(&obj->oid)) {
+       if (oid_object_info_extended(the_repository, &obj->oid, NULL, 0) < 0) {
                finish_object__ma(obj);
                return 1;
        }