Merge pull request #585 from thockin/v3_known_hosts_not_dev_null
v3: Don't set known_hosts to /dev/null
This commit is contained in:
commit
025a1c0e39
|
|
@ -1137,7 +1137,7 @@ func setupGitSSH(setupKnownHosts bool) error {
|
||||||
}
|
}
|
||||||
err = os.Setenv("GIT_SSH_COMMAND", fmt.Sprintf("ssh -o UserKnownHostsFile=%s -i %s", pathToSSHKnownHosts, pathToSSHSecret))
|
err = os.Setenv("GIT_SSH_COMMAND", fmt.Sprintf("ssh -o UserKnownHostsFile=%s -i %s", pathToSSHKnownHosts, pathToSSHSecret))
|
||||||
} else {
|
} else {
|
||||||
err = os.Setenv("GIT_SSH_COMMAND", fmt.Sprintf("ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i %s", pathToSSHSecret))
|
err = os.Setenv("GIT_SSH_COMMAND", fmt.Sprintf("ssh -o StrictHostKeyChecking=no -i %s", pathToSSHSecret))
|
||||||
}
|
}
|
||||||
|
|
||||||
// set env variable GIT_SSH_COMMAND to force git use customized ssh command
|
// set env variable GIT_SSH_COMMAND to force git use customized ssh command
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue