MCPcopy Index your code
hub / github.com/git/git / start_fetch_loose

Function start_fetch_loose

http-push.c:258–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258static void start_fetch_loose(struct transfer_request *request)
259{
260 struct active_request_slot *slot;
261 struct http_object_request *obj_req;
262
263 obj_req = new_http_object_request(repo->url, &request->obj->oid);
264 if (!obj_req) {
265 request->state = ABORTED;
266 return;
267 }
268
269 slot = obj_req->slot;
270 slot->callback_func = process_response;
271 slot->callback_data = request;
272 request->slot = slot;
273 request->userData = obj_req;
274
275 /* Try to get the request started, abort the request on error */
276 request->state = RUN_FETCH_LOOSE;
277 if (!start_active_slot(slot)) {
278 fprintf(stderr, "Unable to start GET request\n");
279 repo->can_update_info_refs = 0;
280 release_http_object_request(&obj_req);
281 release_request(request);
282 }
283}
284
285static void start_mkcol(struct transfer_request *request)
286{

Callers 1

fill_active_slotFunction · 0.85

Calls 4

new_http_object_requestFunction · 0.85
start_active_slotFunction · 0.85
release_requestFunction · 0.85

Tested by

no test coverage detected