MinGW: disable CRT command line globbing
commit6880ae31cce901801ff280479f91a063b9c71c94
authorKarsten Blees <blees@dcon.de>
Fri, 7 Jan 2011 18:52:20 +0000 (7 19:52 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Tue, 19 Jun 2012 22:36:54 +0000 (19 23:36 +0100)
treee82f73e5c5eec75a9a650382e022d1d7424f51dd
parentf3aa2edbeb67587fb606bfe7a56bd48f8836418b
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