parse-options-cb: convert to struct object_id
[gitweb.git] / builtin / fsck.c
index b5e13a45560f9338a65191c22d213f33052bf9b9..c40e14de658e399833a69225a04e93cd4ff27cc7 100644 (file)
@@ -599,10 +599,10 @@ static int fsck_cache_tree(struct cache_tree *it)
                fprintf(stderr, "Checking cache tree\n");
 
        if (0 <= it->entry_count) {
-               struct object *obj = parse_object(it->sha1);
+               struct object *obj = parse_object(it->oid.hash);
                if (!obj) {
                        error("%s: invalid sha1 pointer in cache-tree",
-                             sha1_to_hex(it->sha1));
+                             oid_to_hex(&it->oid));
                        errors_found |= ERROR_REFS;
                        return 1;
                }