MCPcopy Index your code
hub / github.com/dagger/dagger / getGitSSHCommand

Function getGitSSHCommand

util/gitutil/cli.go:320–328  ·  view source on GitHub ↗
(knownHosts string)

Source from the content-addressed store, hash-verified

318}
319
320func getGitSSHCommand(knownHosts string) string {
321 gitSSHCommand := "ssh -F /dev/null"
322 if knownHosts != "" {
323 gitSSHCommand += " -o UserKnownHostsFile=" + knownHosts
324 } else {
325 gitSSHCommand += " -o StrictHostKeyChecking=no"
326 }
327 return gitSSHCommand
328}

Callers 1

RunMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected