forked from qt-creator/qt-creator
Git - modify way to get remotes
Need to use push remote, and not fetch one because of gerrit plugin checks if remote url contains url set in gerritSettings. This needs push and not fetch url. Change-Id: If738e5c46f90ad00dc4616a2d109cab7a193620d Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -1548,7 +1548,7 @@ QMap<QString,QString> GitClient::synchronousRemotesList(const QString &workingDi
|
||||
QStringList remotes = output.split(QLatin1String("\n"));
|
||||
|
||||
foreach (const QString &remote, remotes) {
|
||||
if (!remote.endsWith(QLatin1String(" (fetch)")))
|
||||
if (!remote.endsWith(QLatin1String(" (push)")))
|
||||
continue;
|
||||
|
||||
QStringList tokens = remote.split(QRegExp(QLatin1String("\\s")),
|
||||
|
||||
Reference in New Issue
Block a user