MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / spawnConnection

Method spawnConnection

ssh/connection.go:152–159  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

150}
151
152func (st *SSHTransfer) spawnConnection(n int) (*PktlineConnection, string, error) {
153 conn, _, controlPath, err := startConnection(n, st.osEnv, st.gitEnv, st.meta, st.operation, st.controlPath)
154 if err != nil {
155 tracerx.Printf("failed to spawn pure SSH connection (#%d): %s", n, err)
156 return nil, "", err
157 }
158 return conn, controlPath, err
159}
160
161func (st *SSHTransfer) setConnectionCount(n int) error {
162 count := len(st.conn)

Callers 2

ConnectionMethod · 0.95
setConnectionCountMethod · 0.95

Calls 1

startConnectionFunction · 0.85

Tested by

no test coverage detected