MCPcopy
hub / github.com/go-git/go-git / newClient

Function newClient

remote.go:553–570  ·  view source on GitHub ↗
(url string, insecure bool, clientCert, clientKey, caBundle []byte, proxyOpts transport.ProxyOptions)

Source from the content-addressed store, hash-verified

551}
552
553func newClient(url string, insecure bool, clientCert, clientKey, caBundle []byte, proxyOpts transport.ProxyOptions) (transport.Transport, *transport.Endpoint, error) {
554 ep, err := transport.NewEndpoint(url)
555 if err != nil {
556 return nil, nil, err
557 }
558 ep.InsecureSkipTLS = insecure
559 ep.ClientCert = clientCert
560 ep.ClientKey = clientKey
561 ep.CaBundle = caBundle
562 ep.Proxy = proxyOpts
563
564 c, err := client.NewClient(ep)
565 if err != nil {
566 return nil, nil, err
567 }
568
569 return c, ep, err
570}
571
572func (r *Remote) fetchPack(ctx context.Context, o *FetchOptions, s transport.UploadPackSession,
573 req *packp.UploadPackRequest) (err error) {

Callers 2

newUploadPackSessionFunction · 0.85
newSendPackSessionFunction · 0.85

Calls 2

NewEndpointFunction · 0.92
NewClientFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…