Skip to content

Commit 2d48986

Browse files
committed
Merge branch 'stable-6.4'
2 parents cd34771 + c610e60 commit 2d48986

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2130,7 +2130,10 @@ private String launchCommandWithCredentials(
21302130
userName = sshUser.getUsername();
21312131
}
21322132
passphrase = createPassphraseFile(sshUser);
2133-
knownHostsTemp = createTempFile("known_hosts", "");
2133+
/* 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", "");
21342137
if (launcher.isUnix()) {
21352138
ssh = createUnixGitSSH(key, userName, knownHostsTemp);
21362139
askpass = createUnixSshAskpass(sshUser, passphrase);

0 commit comments

Comments
 (0)