We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd34771 + c610e60 commit 2d48986Copy full SHA for 2d48986
src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java
@@ -2130,7 +2130,10 @@ private String launchCommandWithCredentials(
2130
userName = sshUser.getUsername();
2131
}
2132
passphrase = createPassphraseFile(sshUser);
2133
- knownHostsTemp = createTempFile("known_hosts", "");
+ /* ssh.exe 9.5 on Windows does not accept spaces in path to known_hosts.
2134
+ * Use temp file wrapper location because known_hosts is not sensitive info.
2135
+ */
2136
+ knownHostsTemp = createTempFileForWrapper("known_hosts", "");
2137
if (launcher.isUnix()) {
2138
ssh = createUnixGitSSH(key, userName, knownHostsTemp);
2139
askpass = createUnixSshAskpass(sshUser, passphrase);
0 commit comments