Repository navigation
Allow users to use Windows' OpenSSH binaries when available - #12734
Conversation
| return false | ||
| } | ||
|
|
||
| return await fse.pathExists(WindowsOpenSSHPath) |
There was a problem hiding this comment.
For some reason this is true on Windows 11 for ARM, but later git can't find it 🤔
| // If the user never selected whether to use Windows OpenSSH or not, use it | ||
| // by default if we have to show the welcome flow (i.e. if it's a new install) | ||
| if (__WIN32__ && getBoolean(UseWindowsOpenSSHKey) === undefined) { | ||
| this._setUseWindowsOpenSSH(this.showWelcomeFlow) | ||
| } |
There was a problem hiding this comment.
This is what I used to check whether it's a first install or not: whether the welcome flow has been shown or not. If there is no stored value for this setting, set it to true only if we still have to show the welcome flow (i.e. if it's the first time the user opens the app).
|
Just found some issues, I'll try another approach… |
|
Hopefully should be good now. I noticed some issues with the persisted setting not being read when the app starts 🤦♂️ I also noticed there is a |
tidy-dev
left a comment
There was a problem hiding this comment.
✨ Looks good and tested well.
(Definitely doesn't show up in mac. 😄 I tried there first without thinking about it being windows only 🤦 )
Closes #5641
Description
This PR introduces a new setting for users on Windows versions 10.0.17134 and newer, where there is a system OpenSSH available. New Windows installs will have this setting enabled by default, while existing installs will have this setting disabled in order to persist the existing behavior and avoid causing issues to users that already have everything set up and running.
Regarding the implementation, it just adds the
-c core.sshCommand="C:\\Windows\\System32\\OpenSSH\\ssh.exe"parameter to all git calls.I haven't managed to make this works on Windows 11 for ARM, it's like Desktop doesn't see that
ssh.exe. I still have to test this on Windows 11 for x64 to see if it works there or if it's a Windows 11 issue.EDIT: I just tested it and it doesn't work on ARM, but it does work on Windows 11 for x64 🎉
Screenshots
Release notes
Notes: [Improved] Windows users can now rely on the system OpenSSH for their git repositories.