MinGW: disable CRT command line globbing
commit6c48bb1476740d1362d5699f357fb8f67e2b8c05
authorKarsten Blees <blees@dcon.de>
Fri, 7 Jan 2011 18:52:20 +0000 (7 19:52 +0100)
committerKarsten Blees <blees@dcon.de>
Thu, 15 Mar 2012 17:05:27 +0000 (15 18:05 +0100)
treecefd4f2fe76f23bd7fdcef83dc434e7dd93a6f85
parent8d36fb6ea48f2e5957da5a2ae1009727f8955cc7
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