I am using git version 2.30.0.windows.2.
The intent is to run "far.exe /e <filename>" when git wants to invoke an editor, unfortunately, for some reason it transforms into "far.exe e:/ <filename>" when git tries to invoke an editor.
What did you do before the bug happened? (Steps to reproduce your issue)
1. Install far manager x64: Far Manager Official Site : download;
2. Edit .gitconfig and set core.editor to "\"c:\\Program Files\\Far Manager\\Far.exe\" /e"
3. Do a "git commit" in an appropriate location, so git tries to open an editor
4. See that Far started in "regular" mode rather than in "editor" mode.
5. Check the command line Far was started with and notice the "E:\" as the first argument (can be done in Powershell: get-process far | Select-Object -ExpandProperty CommandLine)
What did you expect to happen? (Expected behavior)
"/e" is properly passed as the first executable argument.
What happened instead? (Actual behavior)
"E:/" is passed as the first argument
What's different between what you expected and what actually happened?
"/e" was replaced with "E:/"
Anything else you want to add:
Please review the rest of the bug report below.
You can delete any lines you don't wish to share.
[System Info]
git version:
git version 2.30.0.windows.2
cpu: x86_64
built from commit: f8cbc844b81bf6b9e72178bbe891a86c8bf5e9e7
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
uname: Windows 10.0 19042
compiler info: gnuc: 10.2
libc info: no libc information available
$SHELL (typically, interactive shell): <unset>
[Enabled Hooks]