forked from qt-creator/qt-creator
Git/VCS: Use ctrlc stub for process execution
This ensures that child processes are also terminated. Required specifically for Git on Windows, when running in cmd directory, which spawns a child process for usr/bin/git. On this case, if git takes long to finish and is aborted while running, the main process was killed as expected, but the child process remained alive. Task-number: QTCREATORBUG-27567 Change-Id: I40271eb42cfaefd81f2fe5af138254ab0a2c8da8 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
3a90977da0
commit
371e674967
@@ -885,6 +885,7 @@ void BranchModel::updateUpstreamStatus(BranchNode *node)
|
||||
process->setCommand({d->client->vcsBinary(), {"rev-list", "--no-color", "--left-right",
|
||||
"--count", node->fullRef() + "..." + node->tracking}});
|
||||
process->setWorkingDirectory(d->workingDirectory);
|
||||
process->setUseCtrlCStub(true);
|
||||
connect(process, &QtcProcess::done, this, [this, process, node] {
|
||||
process->deleteLater();
|
||||
if (process->result() != ProcessResult::FinishedWithSuccess)
|
||||
|
||||
Reference in New Issue
Block a user