On Windows, os.devNull is '\\.\nul', which git cannot open as a config file path (fatal: unable to access '\\.\nul': Invalid argument). Git for Windows translates the literal '/dev/null' correctly via its MSYS2 layer, fixing patch-commit on Windows.
On Windows, os.devNull is '\\.\nul', which git cannot open as a config file path (fatal: unable to access '\\.\nul': Invalid argument). Git for Windows translates the literal '/dev/null' correctly via its MSYS2 layer, fixing patch-commit on Windows.