forked from qt-creator/qt-creator
Git: Enable commit selection in Push to Gerrit dialog
Change-Id: Ie0ca8322858ac75d4bacf8b3efe66fa40577e3a2 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
cd2722b1a0
commit
566d3d9d9b
@@ -405,7 +405,10 @@ void GerritPlugin::push()
|
||||
}
|
||||
|
||||
args << dialog->selectedRemoteName();
|
||||
QString target = QLatin1String("HEAD:refs/") + dialog->selectedPushType() +
|
||||
QString target = dialog->selectedCommit();
|
||||
if (target.isEmpty())
|
||||
target = QLatin1String("HEAD");
|
||||
target += QLatin1String(":refs/") + dialog->selectedPushType() +
|
||||
QLatin1Char('/') + dialog->selectedRemoteBranchName();
|
||||
const QString topic = dialog->selectedTopic();
|
||||
if (!topic.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user