mirror of
https://github.com/git/git.git
synced 2026-02-11 18:30:40 +00:00
git-wrapper: support git.exe to be in a spaced dir
When *Git for Windows* is installed into a directory that has spaces in it, e.g. `C:\Program Files\Git`, the `git-wrapper` appends this directory unquoted when fixing up the command line. To resolve this, just quote the provided `execpath`. Signed-off-by: nalla <nalla@hamal.uberspace.de>
This commit is contained in:
committed by
Johannes Schindelin
parent
2baaa5f5d3
commit
70f2dac5d0
@@ -133,7 +133,7 @@ static LPWSTR fixup_commandline(LPWSTR exepath, LPWSTR *exep, int *wait,
|
||||
(wcslen(cmdline) + prefix_args_len + 1 + MAX_PATH));
|
||||
if (prefix_args) {
|
||||
if (is_git_command)
|
||||
_swprintf(cmd, L"%s\\%s %.*s", exepath, L"git.exe",
|
||||
_swprintf(cmd, L"\"%s\\%s\" %.*s", exepath, L"git.exe",
|
||||
prefix_args_len, prefix_args);
|
||||
else
|
||||
_swprintf(cmd, L"%.*s", prefix_args_len, prefix_args);
|
||||
|
||||
Reference in New Issue
Block a user