MCPcopy Create free account
hub / github.com/go-git/go-git / newClient

Function newClient

remote.go:541–556  ·  view source on GitHub ↗
(url string, insecure bool, cabundle []byte, proxyOpts transport.ProxyOptions)

Source from the content-addressed store, hash-verified

539}
540
541func newClient(url string, insecure bool, cabundle []byte, proxyOpts transport.ProxyOptions) (transport.Transport, *transport.Endpoint, error) {
542 ep, err := transport.NewEndpoint(url)
543 if err != nil {
544 return nil, nil, err
545 }
546 ep.InsecureSkipTLS = insecure
547 ep.CaBundle = cabundle
548 ep.Proxy = proxyOpts
549
550 c, err := client.NewClient(ep)
551 if err != nil {
552 return nil, nil, err
553 }
554
555 return c, ep, err
556}
557
558func (r *Remote) fetchPack(ctx context.Context, o *FetchOptions, s transport.UploadPackSession,
559 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