Skip to content

mingw: support spawning programs with paths containing spacesnames #220

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

Closed
wants to merge 1 commit into from

Conversation

dscho
Copy link
Member

@dscho dscho commented May 21, 2019

This is a patch to support older Windows versions (e.g. Windows 7) better.

I know, I know, Windows 7's End-Of-Life is now less than half a year away, but... I am unsure just how long Git for Windows will support Windows 7 beyond its officially-supported life; We still support Windows Vista, after all, which has been "sun-set" over two years ago.

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 git-for-windows#692

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho added the ready to submit Has commits that have not been submitted yet label May 21, 2019
@dscho dscho removed the ready to submit Has commits that have not been submitted yet label Jul 4, 2019
@dscho
Copy link
Member Author

dscho commented Jul 16, 2019

/submit

@gitgitgadget
Copy link

gitgitgadget bot commented Jul 16, 2019

Submitted as [email protected]

@gitgitgadget
Copy link

gitgitgadget bot commented Jul 16, 2019

This branch is now known as js/mingw-spawn-with-spaces-in-path.

@gitgitgadget
Copy link

gitgitgadget bot commented Jul 16, 2019

This patch series was integrated into pu via git@760d75a.

@gitgitgadget gitgitgadget bot added the pu label Jul 16, 2019
@gitgitgadget
Copy link

gitgitgadget bot commented Jul 18, 2019

This patch series was integrated into pu via git@96cabae.

@gitgitgadget
Copy link

gitgitgadget bot commented Jul 19, 2019

This patch series was integrated into pu via git@d7aa2e7.

@gitgitgadget
Copy link

gitgitgadget bot commented Jul 19, 2019

This patch series was integrated into next via git@33dd6d0.

@gitgitgadget
Copy link

gitgitgadget bot commented Jul 23, 2019

This patch series was integrated into pu via git@24b2a53.

@gitgitgadget
Copy link

gitgitgadget bot commented Jul 25, 2019

This patch series was integrated into pu via git@a5194d8.

@gitgitgadget
Copy link

gitgitgadget bot commented Jul 25, 2019

This patch series was integrated into next via git@a5194d8.

@gitgitgadget
Copy link

gitgitgadget bot commented Jul 25, 2019

This patch series was integrated into master via git@a5194d8.

@gitgitgadget gitgitgadget bot added the master label Jul 25, 2019
@gitgitgadget gitgitgadget bot closed this Jul 25, 2019
@gitgitgadget
Copy link

gitgitgadget bot commented Jul 25, 2019

Closed via a5194d8.

@dscho dscho deleted the spawn-with-spaces branch July 30, 2019 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant