summaryrefslogtreecommitdiff
path: root/check_bindir
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2019-07-16 14:03:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-07-16 19:47:37 (GMT)
commiteb7c78631445f35737d059bea23174d972cf7ca3 (patch)
tree718db47d93ad8eecfe49c7d055dde4a85f779b2f /check_bindir
parentb697d92f56511e804b8ba20ccbe7bdc85dc66810 (diff)
downloadgit-eb7c78631445f35737d059bea23174d972cf7ca3.zip
git-eb7c78631445f35737d059bea23174d972cf7ca3.tar.gz
git-eb7c78631445f35737d059bea23174d972cf7ca3.tar.bz2
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 'check_bindir')
0 files changed, 0 insertions, 0 deletions