-
Notifications
You must be signed in to change notification settings - Fork 8
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
ignore quotes in core.sshCommand warning #24
Comments
Hi, it isn't actually the case that this is complaining about - it's already doing a case-insensitive comparison (powershell string comparisons are case insensitive by default). It's actually creating the warning because of the quotes. I think you should be able to just remove the quotes around the path and the warning will go away (you don't need them unless the path contains spaces), but I can also look at making the check more robust so it ignores the quotes for a future version (or if you wanted to submit a pull request to do this, that would be welcome too). |
Ah, I see, thanks. I'll alter the title and description. |
Removing the quotes is an option if you don't have spaces, but not if you do have them. Edit to add: I've tested and my Git (git for windows, 2.27.0.windows.1) doesn't consider double-quoted paths on any config files. With With With other combinations, I get Anyway, I'm issuing a pull request to ignore single-quoted paths. |
I just installed [core]
sshCommand = C:/Program Files/OpenSSH/ssh.exe which causes errors when using git, saying:
wrapping the value in
It seems like this value isn't needed at all. If I remove |
System Details
Issue Description
The quotes are redundant, since the path contains no spaces, but they should be ignored.
The text was updated successfully, but these errors were encountered: