forked from qt-creator/qt-creator
Git: Deduplicate stderr output on commit
It appears while the process is running, then printed again when it's done. Change-Id: I86737eccfcf34d82ccca1ec4b9a7f42fc66bf86c Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
Orgad Shaneh
parent
7cc478cfb1
commit
e3ace00a43
@@ -2951,14 +2951,12 @@ bool GitClient::addAndCommit(const QString &repositoryDirectory,
|
|||||||
|
|
||||||
const SynchronousProcessResponse resp = vcsSynchronousExec(repositoryDirectory, arguments,
|
const SynchronousProcessResponse resp = vcsSynchronousExec(repositoryDirectory, arguments,
|
||||||
VcsCommand::NoFullySync);
|
VcsCommand::NoFullySync);
|
||||||
const QString stdErr = resp.stdErr();
|
|
||||||
if (resp.result == SynchronousProcessResponse::Finished) {
|
if (resp.result == SynchronousProcessResponse::Finished) {
|
||||||
VcsOutputWindow::appendMessage(msgCommitted(amendSHA1, commitCount));
|
VcsOutputWindow::appendMessage(msgCommitted(amendSHA1, commitCount));
|
||||||
VcsOutputWindow::appendError(stdErr);
|
|
||||||
GitPlugin::updateCurrentBranch();
|
GitPlugin::updateCurrentBranch();
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} 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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user