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

Function start_mkcol

http-push.c:285–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285static void start_mkcol(struct transfer_request *request)
286{
287 char *hex = oid_to_hex(&request->obj->oid);
288 struct active_request_slot *slot;
289
290 request->url = get_remote_object_url(repo->url, hex, 1);
291
292 slot = get_active_slot();
293 slot->callback_func = process_response;
294 slot->callback_data = request;
295 curl_setup_http_get(slot->curl, request->url, DAV_MKCOL);
296 curl_easy_setopt(slot->curl, CURLOPT_ERRORBUFFER, request->errorstr);
297
298 if (start_active_slot(slot)) {
299 request->slot = slot;
300 request->state = RUN_MKCOL;
301 } else {
302 request->state = ABORTED;
303 FREE_AND_NULL(request->url);
304 }
305}
306
307static void start_fetch_packed(struct transfer_request *request)
308{

Callers 1

fill_active_slotFunction · 0.85

Calls 5

oid_to_hexFunction · 0.85
get_remote_object_urlFunction · 0.85
get_active_slotFunction · 0.85
curl_setup_http_getFunction · 0.85
start_active_slotFunction · 0.85

Tested by

no test coverage detected