http: use struct object_id instead of bare sha1
The dumb-http walker code still passes around and stores object ids as "unsigned char *sha1". Let's modernize it. There's probably still more work to be done to handle dumb-http fetches with a new, larger hash. But that can wait; this is enough that we can now convert some of the low-level object routines that we call into from here (and in fact, some of the "oid.hash" references added here will be further improved in the next patch). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
c93206b412
commit
f0be0db13d
@@ -255,7 +255,7 @@ static void start_fetch_loose(struct transfer_request *request)
|
||||
struct active_request_slot *slot;
|
||||
struct http_object_request *obj_req;
|
||||
|
||||
obj_req = new_http_object_request(repo->url, request->obj->oid.hash);
|
||||
obj_req = new_http_object_request(repo->url, &request->obj->oid);
|
||||
if (obj_req == NULL) {
|
||||
request->state = ABORTED;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user