forked from qt-creator/qt-creator
Gerrit: Add a button for server revalidation
Change-Id: I0ef823aa562093e5e3d63bc2766ab1a95ae259d5 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
c1d013437f
commit
db16f265c9
@@ -118,7 +118,9 @@ QString GerritServer::url(UrlType urlType) const
|
||||
return res;
|
||||
}
|
||||
|
||||
bool GerritServer::fillFromRemote(const QString &remote, const GerritParameters ¶meters)
|
||||
bool GerritServer::fillFromRemote(const QString &remote,
|
||||
const GerritParameters ¶meters,
|
||||
bool forceReload)
|
||||
{
|
||||
const GitRemote r(remote);
|
||||
if (!r.isValid)
|
||||
@@ -143,7 +145,8 @@ bool GerritServer::fillFromRemote(const QString &remote, const GerritParameters
|
||||
curlBinary = parameters.curl;
|
||||
if (curlBinary.isEmpty() || !QFile::exists(curlBinary))
|
||||
return false;
|
||||
switch (loadSettings()) {
|
||||
const StoredHostValidity validity = forceReload ? Invalid : loadSettings();
|
||||
switch (validity) {
|
||||
case Invalid:
|
||||
rootPath = r.path;
|
||||
// Strip the last part of the path, which is always the repo name
|
||||
|
||||
Reference in New Issue
Block a user