status: do not report errors in sequencer/todo
[gitweb.git] / builtin / rev-list.c
index 7de083b5f60b74e339085fcdd61e54dfa36559f2..9f31837d303f1f302266fdd03298ddce73867ba0 100644 (file)
@@ -238,7 +238,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;
        }