Git: Suppress "No local commits" error message in Push to Gerrit

Change-Id: Ib0cf79acf48d24848fda92a8b7b06efe62b46dbc
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2014-02-12 10:10:27 +02:00
committed by Orgad Shaneh
parent b7d2268ff3
commit 635a355f97
3 changed files with 8 additions and 5 deletions

View File

@@ -78,12 +78,13 @@ bool LogChangeWidget::init(const QString &repository, const QString &commit, Log
{
if (!populateLog(repository, commit, flags))
return false;
if (!m_model->rowCount()) {
if (m_model->rowCount() > 0)
return true;
if (!(flags & Silent)) {
VcsBaseOutputWindow::instance()->appendError(
GitPlugin::instance()->gitClient()->msgNoCommits(flags & IncludeRemotes));
return false;
}
return true;
return false;
}
QString LogChangeWidget::commit() const