MinGW: disable CRT command line globbing
commitbf1a7ff510a4ad08c8e05e9905c00a30ec22d37c
authorKarsten Blees <blees@dcon.de>
Fri, 7 Jan 2011 18:52:20 +0000 (7 19:52 +0100)
committerErik Faye-Lund <kusmabite@gmail.com>
Tue, 21 Jun 2011 11:24:09 +0000 (21 13:24 +0200)
tree9b3ca013f8ce09878a40326a9668e87e1675bfde
parentb11582449b986cdaa97f5e16fe5d769743702143
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