forked from qt-creator/qt-creator
Git: Filter out commits according to active remote
... in the Push to Gerrit dialog. Fixes: QTCREATORBUG-24436 Change-Id: I2f1ab49d9fbeb09ffb66de23d34a2facd53cb725 Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
Orgad Shaneh
parent
bafc8381c6
commit
354f628052
@@ -66,6 +66,8 @@ protected:
|
||||
QString GerritPushDialog::determineRemoteBranch(const QString &localBranch)
|
||||
{
|
||||
const QString earliestCommit = m_ui->commitView->earliestCommit();
|
||||
if (earliestCommit.isEmpty())
|
||||
return {};
|
||||
|
||||
QString output;
|
||||
QString error;
|
||||
@@ -233,6 +235,13 @@ void GerritPushDialog::onRemoteChanged(bool force)
|
||||
{
|
||||
setRemoteBranches();
|
||||
const QString version = m_ui->remoteComboBox->currentServer().version;
|
||||
const QString remote = m_ui->remoteComboBox->currentRemoteName();
|
||||
|
||||
m_ui->commitView->setExcludedRemote(remote);
|
||||
const QString branch = m_ui->localBranchComboBox->itemText(m_ui->localBranchComboBox->currentIndex());
|
||||
m_hasLocalCommits = m_ui->commitView->init(m_workingDir, branch, LogChangeWidget::Silent);
|
||||
validate();
|
||||
|
||||
const bool supportsWip = versionSupportsWip(version);
|
||||
if (!force && supportsWip == m_currentSupportsWip)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user