Johannes Schindelin <Johannes.Schindelin@xxxxxx> writes: > Sadly, this breaks on Windows: on Linux (and before this patch, also on > Windows), the error message reads somewhat like this: > > fatal: exec 'rev-parse': cd to 'my-subm' failed: No such file or directory > > However, with the built-in `git submodule summary`, on Windows the error > message reads like this: > > error: cannot spawn git: No such file or directory I think a test that relies on platform-specific error string is a bug. It's like expecting an exact string out of strerror(), which we had to fix a few times. So I am not sure we would want to butcher compat/mingw.c only to match such an expectation by a (buggy) test.