diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2019-07-16 07:03:12 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-16 12:47:37 -0700 |
commit | eb7c78631445f35737d059bea23174d972cf7ca3 (patch) | |
tree | 718db47d93ad8eecfe49c7d055dde4a85f779b2f /walker.h | |
parent | Git 2.22 (diff) | |
download | tgif-eb7c78631445f35737d059bea23174d972cf7ca3.tar.xz |
mingw: support spawning programs containing spaces in their names
On some older Windows versions (e.g. Windows 7), the CreateProcessW()
function does not really support spaces in its first argument,
lpApplicationName. But it supports passing NULL as lpApplicationName,
which makes it figure out the application from the (possibly quoted)
first argument of lpCommandLine.
Let's use that trick (if we are certain that the first argument matches
the executable's path) to support launching programs whose path contains
spaces.
We will abuse the test-fake-ssh.exe helper to verify that this works and
does not regress.
This fixes https://github.com/git-for-windows/git/issues/692
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'walker.h')
0 files changed, 0 insertions, 0 deletions