Consolidate ignore_packed logic more
[gitweb.git] / builtin-fsck.c
index 30971ce0ad170350cc6aaa2d213d348c267263db..491375dc59310ad996f280cb1b0c398154f508a4 100644 (file)
@@ -158,7 +158,7 @@ static void check_reachable_object(struct object *obj)
         * do a full fsck
         */
        if (!obj->parsed) {
-               if (has_sha1_pack(obj->sha1, NULL))
+               if (has_sha1_pack(obj->sha1))
                        return; /* it is in pack - forget about it */
                printf("missing %s %s\n", typename(obj->type), sha1_to_hex(obj->sha1));
                errors_found |= ERROR_REACHABLE;