Provide git_exit() for MinGW
commit194c1dbb5a04e29937b87d477a16927fa2c3be62
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 29 Aug 2007 13:16:46 +0000 (29 14:16 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 29 Aug 2007 13:28:48 +0000 (29 14:28 +0100)
tree3312cd6fd03bd8cef9ea520fbed45405ce640e04
parentdd56555ea5cd03958dc2f987f2776efbab571452
Provide git_exit() for MinGW

Apparently, MinGW's exit function has problems with negative
exit codes.  Substitute them by 1.

This fixes at least t1300, which failed because the exit code of
git-config with an invalid file was 0.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
compat/mingw.c
git-compat-util.h