Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to 2.46.2.windows.1 no longer works with common windows ?~/.ssh/config files #5181

Open
1 task done
fv-ian opened this issue Sep 30, 2024 · 0 comments
Open
1 task done

Comments

@fv-ian
Copy link

fv-ian commented Sep 30, 2024

  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

git version 2.46.2.windows.1
cpu: x86_64
built from commit: 1e20af0e809e08cca5714727dfa0fb50c0c4664d
sizeof-long: 4
sizeof-size_t: 8
shell-path: D:/git-sdk-64-build-installers/usr/bin/sh
feature: fsmonitor--daemon
libcurl: 8.10.1
OpenSSL: OpenSSL 3.2.3 3 Sep 2024
zlib: 1.3.1
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.22631.4169]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
> type "$env:USERPROFILE\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

defaults - Using PortableGit packaging
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

I have a ~/.ssh/config to work with our setup with Okta Advanced Server Access.

It looks like this:

Match exec "C:\\Users\\ian\\AppData\\Local\\Apps\\ScaleFT\\bin\\sft.exe resolve -q  %h"
    ProxyCommand "C:\\Users\\ian\\AppData\\Local\\Apps\\ScaleFT\\bin\\sft.exe" proxycommand  %h
    UserKnownHostsFile C:\\Users\\ian\\AppData\\Local\\ScaleFT\\proxycommand_known_hosts

This config worked in version 2.46.1.windows.1. It broke in 2.46.2.windows.1. Flipping the \\ to / did work around the issue. Though being able to work with both is a windows viable config.

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

Powershell 7.4.5

git pull
  • What did you expect to occur after running these commands?

Standard git pull actions

  • What actually happened instead?
❯ git pull
/bin/sh: line 1: C:UsersianAppDataLocalAppsScaleFTbinsft.exe: command not found
Already up to date.
  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant