MinGW: disable CRT command line globbing
commit2a975bd4f6c3fb4deeeded49e24f250278584301
authorKarsten Blees <blees@dcon.de>
Fri, 7 Jan 2011 18:52:20 +0000 (7 19:52 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 14 Feb 2012 20:02:58 +0000 (14 14:02 -0600)
tree6eca24cabbcd30aeecf95c542e7f789f8b022e15
parentbf50209eec9806550469e0c260b788ac4271c6c5
MinGW: disable CRT command line globbing

MingwRT listens to _CRT_glob to decide if __getmainargs should
perform globbing, with the default being that it should.
Unfortunately, __getmainargs globbing is sub-par; for instance
patterns like "*.c" will only match c-sources in the current
directory.

Disable __getmainargs' command line wildcard expansion, so these
patterns will be left untouched, and handled by Git's superior
built-in globbing instead.

MSVC defaults to no globbing, so we don't need to do anything
in that case.

This fixes t5505 and t7810.

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
compat/mingw.c