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

Function newSendPackSession

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

Source from the content-addressed store, hash-verified

542}
543
544func newSendPackSession(url string, auth transport.AuthMethod, insecure bool, clientCert, clientKey, caBundle []byte, proxyOpts transport.ProxyOptions) (transport.ReceivePackSession, error) {
545 c, ep, err := newClient(url, insecure, clientCert, clientKey, caBundle, proxyOpts)
546 if err != nil {
547 return nil, err
548 }
549
550 return c.NewReceivePackSession(ep, auth)
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)

Callers 1

PushContextMethod · 0.85

Calls 2

newClientFunction · 0.85
NewReceivePackSessionMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…