forked from qt-creator/qt-creator
Gerrit: Add topic in Push to Gerrit dialog
Change-Id: I4f2df0d40d7518b1a88595ad2ff52fd50b8ac92d Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
8f3a8d47c1
commit
711315f383
@@ -380,8 +380,12 @@ void GerritPlugin::push()
|
||||
QStringList args;
|
||||
|
||||
args << dialog->selectedRemoteName();
|
||||
args << QLatin1String("HEAD:refs/") + dialog->selectedPushType() +
|
||||
QString target = QLatin1String("HEAD:refs/") + dialog->selectedPushType() +
|
||||
QLatin1Char('/') + dialog->selectedRemoteBranchName();
|
||||
const QString topic = dialog->selectedTopic();
|
||||
if (!topic.isEmpty())
|
||||
target += QLatin1Char('/') + topic;
|
||||
args << target;
|
||||
|
||||
Git::Internal::GitPlugin::instance()->gitClient()->synchronousPush(topLevel, args);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user