Git: Do *not* use ctrlc stub for rev-list

It's a very short command, so the time penalty for spawning another
process doesn't worth the additional termination protection.

Amends commit 371e674967.

Change-Id: I151f0bc1838cd9ddbdf822cbe5cf8923da6a9499
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Orgad Shaneh
2023-02-13 20:38:06 +02:00
committed by Orgad Shaneh
parent 7faad7b4e8
commit adfb5062f4

View File

@@ -885,7 +885,6 @@ void BranchModel::updateUpstreamStatus(BranchNode *node)
process->setCommand({d->client->vcsBinary(), {"rev-list", "--no-color", "--left-right", process->setCommand({d->client->vcsBinary(), {"rev-list", "--no-color", "--left-right",
"--count", node->fullRef() + "..." + node->tracking}}); "--count", node->fullRef() + "..." + node->tracking}});
process->setWorkingDirectory(d->workingDirectory); process->setWorkingDirectory(d->workingDirectory);
process->setUseCtrlCStub(true);
connect(process, &QtcProcess::done, this, [this, process, node] { connect(process, &QtcProcess::done, this, [this, process, node] {
process->deleteLater(); process->deleteLater();
if (process->result() != ProcessResult::FinishedWithSuccess) if (process->result() != ProcessResult::FinishedWithSuccess)