object: convert lookup_unknown_object() to use object_id
[gitweb.git] / upload-pack.c
index d9a62adef02cf81c4cb2536d93b63575c9f8ba4e..ecc19641fe6790a221238edbe7c9b6c45e53ebe7 100644 (file)
@@ -960,7 +960,7 @@ static void receive_needs(struct packet_reader *reader, struct object_array *wan
 static int mark_our_ref(const char *refname, const char *refname_full,
                        const struct object_id *oid)
 {
-       struct object *o = lookup_unknown_object(oid->hash);
+       struct object *o = lookup_unknown_object(oid);
 
        if (ref_is_hidden(refname, refname_full)) {
                o->flags |= HIDDEN_REF;