diff --git a/compat/mingw.c b/compat/mingw.c index 0c834a2a8d108c..f6c4ca9cdf4e18 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -20,6 +20,7 @@ #include "gettext.h" #define SECURITY_WIN32 #include +#include "../write-or-die.h" #include "../repository.h" #define HCAST(type, handle) ((type)(intptr_t)handle) @@ -3620,6 +3621,7 @@ int wmain(int argc, const wchar_t **wargv) #endif maybe_redirect_std_handles(); + fsync_object_files = 1; /* determine size of argv and environ conversion buffer */ maxlen = wcslen(wargv[0]);