MCPcopy Create free account
hub / github.com/git/git / process_connect

Function process_connect

transport-helper.c:675–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

673}
674
675static int process_connect(struct transport *transport,
676 int for_push)
677{
678 struct helper_data *data = transport->data;
679 enum git_connect_service service;
680 const char *exec;
681 int ret;
682
683 service = for_push ? GIT_CONNECT_RECEIVE_PACK : GIT_CONNECT_UPLOAD_PACK;
684 if (for_push)
685 exec = data->transport_options.receivepack;
686 else
687 exec = data->transport_options.uploadpack;
688
689 ret = process_connect_service(transport, service, exec);
690 if (ret)
691 do_take_over(transport);
692 return ret;
693}
694
695static int connect_helper(struct transport *transport, enum git_connect_service service,
696 const char *exec, int fd[2])

Callers 4

fetch_refsFunction · 0.85
push_refsFunction · 0.85
get_refs_listFunction · 0.85
get_bundle_uriFunction · 0.85

Calls 2

process_connect_serviceFunction · 0.85
do_take_overFunction · 0.85

Tested by

no test coverage detected