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

Function process_object_response

http-walker.c:93–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93static void process_object_response(void *callback_data)
94{
95 struct object_request *obj_req =
96 (struct object_request *)callback_data;
97 struct walker *walker = obj_req->walker;
98 struct walker_data *data = walker->data;
99 struct alt_base *alt = data->alt;
100
101 process_http_object_request(obj_req->req);
102 obj_req->state = COMPLETE;
103
104 normalize_curl_result(&obj_req->req->curl_result,
105 obj_req->req->http_code,
106 obj_req->req->errorstr,
107 sizeof(obj_req->req->errorstr));
108
109 /* Use alternates if necessary */
110 if (missing_target(obj_req->req)) {
111 fetch_alternates(walker, alt->base);
112 if (obj_req->repo->next) {
113 obj_req->repo =
114 obj_req->repo->next;
115 release_http_object_request(&obj_req->req);
116 start_object_request(obj_req);
117 return;
118 }
119 }
120
121 finish_object_request(obj_req);
122}
123
124static void release_object_request(struct object_request *obj_req)
125{

Callers

nothing calls this directly

Calls 6

normalize_curl_resultFunction · 0.85
fetch_alternatesFunction · 0.85
start_object_requestFunction · 0.85
finish_object_requestFunction · 0.85

Tested by

no test coverage detected