Skip to content
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

feat: kill git process #551

Closed
wants to merge 1 commit into from
Closed

Conversation

heyouquan
Copy link

use ps-tree to list the sub process pid and kill the process

@@ -1073,6 +1083,19 @@ esprima@^4.0.0:
resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved

@niik
Copy link
Member

niik commented Oct 17, 2024

This is out of scope for dugite I'm afraid. Try using the processCallback option to get a reference to the ChildProcess from which you can send a gentle signal depending on the command you're running (i.e. SIGHUP for git clone) which will let Git clean up its subprocesses. If that doesn't work you have the option of replicating the process in this PR in your dependent project.

@niik niik closed this Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants