From e3ace00a4331cc239c3740a7d3ddc75198c60edc Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Thu, 8 Oct 2020 17:59:23 +0300 Subject: [PATCH] Git: Deduplicate stderr output on commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It appears while the process is running, then printed again when it's done. Change-Id: I86737eccfcf34d82ccca1ec4b9a7f42fc66bf86c Reviewed-by: André Hartmann --- src/plugins/git/gitclient.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index 593f16fc4d7..09053e77ba4 100644 --- a/src/plugins/git/gitclient.cpp +++ b/src/plugins/git/gitclient.cpp @@ -2951,14 +2951,12 @@ bool GitClient::addAndCommit(const QString &repositoryDirectory, const SynchronousProcessResponse resp = vcsSynchronousExec(repositoryDirectory, arguments, VcsCommand::NoFullySync); - const QString stdErr = resp.stdErr(); if (resp.result == SynchronousProcessResponse::Finished) { VcsOutputWindow::appendMessage(msgCommitted(amendSHA1, commitCount)); - VcsOutputWindow::appendError(stdErr); GitPlugin::updateCurrentBranch(); return true; } else { - VcsOutputWindow::appendError(tr("Cannot commit %n files: %1\n", nullptr, commitCount).arg(stdErr)); + VcsOutputWindow::appendError(tr("Cannot commit %n files\n", nullptr, commitCount)); return false; } }