forked from qt-creator/qt-creator
Git: Fix updating branch view on push to new remote branch
If the remote branch does not exist yet,
we need to update the whole branch model,
in order to set the remote-tracking information
and to add the new branch to the remote branches.
Amends da6972e0a9
Change-Id: I9f01ceffa45fcb5e2ea8afe8762b102a550b8e43
Reviewed-by: Marius Sincovici <smaryus@gmail.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
André Hartmann
parent
da6972e0a9
commit
cb8da0e93b
@@ -3200,8 +3200,9 @@ void GitClient::push(const QString &workingDirectory, const QStringList &pushArg
|
||||
VcsCommand *rePushCommand = vcsExec(workingDirectory,
|
||||
fallbackCommandParts.mid(1),
|
||||
nullptr, true, VcsCommand::ShowSuccessMessage);
|
||||
connect(rePushCommand, &VcsCommand::success,
|
||||
this, []() { GitPlugin::instance()->updateCurrentBranch(); });
|
||||
connect(rePushCommand, &VcsCommand::success, this, [workingDirectory]() {
|
||||
GitPlugin::instance()->updateBranches(workingDirectory);
|
||||
});
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user