-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix interrupting git clone
via Ctrl+C
#41
Comments
I already spent a dozen hours on this vexing problem. It appears as if The most curious thing is that according to MSDN's
And indeed, the main process only receives a |
If we evaluate that |
Actually, I think that the |
I wonder.. is this issue something that was/is present on MSYSGIT? |
More findings: When run from When calling from |
@nalla yep, but it was hidden by the fact that our default terminal was the |
Sadly, Ctrl+C still does the wrong thing, then. It fails to kill the spawned process, only the main process is terminated. Which leads me to believe that we might need to call |
I opened a PR with the work in progress: git-for-windows/msys2-runtime#6 It appears to fix the issue here... |
I believe since msys2-runtime#6 is merged, this issue can be closed as well? |
Sorry for the delay; I managed to shoot my development setup real good by missing one All is fixed now, and new |
This is a big problem that also extends to suspending via Ctrl+Z. The problem is that the processes spawned by
git clone
(git-remote-https
andgit-fetch-pack
) continue running unfazed when the main process is interrupted or suspended.This happens only when
git clone
was started inmintty
, though, and a workaround is to callwinpty git clone
.The text was updated successfully, but these errors were encountered: