Commit 5db0ef19 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Git: Do not report canceled for Grep when no results were found

Change-Id: Ib1916c345bd345ee3dd5179c84bb259c2992303e
Reviewed-by: default avatarEike Ziller <>
parent 9117b28e
......@@ -144,8 +144,18 @@ public:, &VcsCommand::cancel);
connect(, &VcsCommand::stdOutText, this, &GitGrepRunner::read);
SynchronousProcessResponse resp = command->runCommand(client->vcsBinary(), arguments, 0);
if (resp.result != SynchronousProcessResponse::Finished)
switch (resp.result) {
case SynchronousProcessResponse::TerminatedAbnormally:
case SynchronousProcessResponse::StartFailed:
case SynchronousProcessResponse::Hang:
case SynchronousProcessResponse::Finished:
case SynchronousProcessResponse::FinishedError:
// When no results are found, git-grep exits with non-zero status.
// Do not consider this as an error.
static void run(QFutureInterface<FileSearchResultList> &fi,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment