Don't set known_hosts to /dev/null
This causes git to log, repeatedly, that it is "adding to known hosts".
This commit is contained in:
parent
3a5b5ca4c8
commit
058ccea621
|
|
@ -1360,7 +1360,7 @@ func (git *repoSync) SetupGitSSH(setupKnownHosts bool, pathToSSHSecret, pathToSS
|
|||
}
|
||||
err = os.Setenv("GIT_SSH_COMMAND", fmt.Sprintf("ssh -o UserKnownHostsFile=%s -i %s", pathToSSHKnownHosts, pathToSSHSecret))
|
||||
} 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
|
||||
|
|
|
|||
Loading…
Reference in New Issue