This is the second attempt of fixing the windows hang, this time with 80% less git mistakes.
It runs the command in a separate shell and passes in the env. This will make exec use whatever shell is setup in the %COMSPEC% env var correctly for both the main process, and all subprocesses.
Before this, the main exec would inherit the shell it's run in, but sub-processes would default to using cmd.exe since the %COMSPEC% env var wasn't available, leading to a possible mismatch in the shells that the parent and children were using, which i'm fairly certain would cause the hang.
This is the second attempt of fixing the windows hang, this time with 80% less git mistakes.
It runs the command in a separate shell and passes in the env. This will make
exec
use whatever shell is setup in the%COMSPEC%
env var correctly for both the main process, and all subprocesses.Before this, the main exec would inherit the shell it's run in, but sub-processes would default to using
cmd.exe
since the%COMSPEC%
env var wasn't available, leading to a possible mismatch in the shells that the parent and children were using, which i'm fairly certain would cause the hang.