sequencer: convert fast_forward_to to struct object_id
[gitweb.git] / reachable.c
index a8a979bd4fcbac6732d26dda3f826a1eec3d3a6b..3bbc84417f47e5d5e872c2d1cc66f3b844a3f160 100644 (file)
@@ -85,10 +85,10 @@ static void add_recent_object(const struct object_id *oid,
                obj = parse_object_or_die(oid->hash, NULL);
                break;
        case OBJ_TREE:
-               obj = (struct object *)lookup_tree(oid->hash);
+               obj = (struct object *)lookup_tree(oid);
                break;
        case OBJ_BLOB:
-               obj = (struct object *)lookup_blob(oid->hash);
+               obj = (struct object *)lookup_blob(oid);
                break;
        default:
                die("unknown object type for %s: %s",