MinGW: disable CRT command line globbing
commit7fa1d0823f18143a85a268fcabf0a620304fd441
authorKarsten Blees <blees@dcon.de>
Fri, 7 Jan 2011 18:52:20 +0000 (7 19:52 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 6 Apr 2012 21:47:21 +0000 (6 16:47 -0500)
treedc7d0d890f42cef321356314970b62f01d8719eb
parent1eccee6ac4272bc65d4fedfc2ceb670faeb85766
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