builtin/reset: convert use of EMPTY_TREE_SHA1_BIN
[gitweb.git] / builtin / fsck.c
index 087360a6757c607c4b38cce5fafad3bbb0822fc0..3eb82ac44ffffd4665fa7ddb0b5b80420aa14ba2 100644 (file)
@@ -227,7 +227,7 @@ static void check_reachable_object(struct object *obj)
        if (!(obj->flags & HAS_OBJ)) {
                if (is_promisor_object(&obj->oid))
                        return;
-               if (has_sha1_pack(obj->oid.hash))
+               if (has_object_pack(&obj->oid))
                        return; /* it is in pack - forget about it */
                printf("missing %s %s\n", printable_type(obj),
                        describe_object(obj));