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

Function newSendPackSession

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

Source from the content-addressed store, hash-verified

530}
531
532func newSendPackSession(url string, auth transport.AuthMethod, insecure bool, cabundle []byte, proxyOpts transport.ProxyOptions) (transport.ReceivePackSession, error) {
533 c, ep, err := newClient(url, insecure, cabundle, proxyOpts)
534 if err != nil {
535 return nil, err
536 }
537
538 return c.NewReceivePackSession(ep, auth)
539}
540
541func newClient(url string, insecure bool, cabundle []byte, proxyOpts transport.ProxyOptions) (transport.Transport, *transport.Endpoint, error) {
542 ep, err := transport.NewEndpoint(url)

Callers 1

PushContextMethod · 0.85

Calls 2

newClientFunction · 0.85
NewReceivePackSessionMethod · 0.65

Tested by

no test coverage detected