diff options
Diffstat (limited to 'src/plugins/git/gerrit/gerritserver.cpp')
-rw-r--r-- | src/plugins/git/gerrit/gerritserver.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/git/gerrit/gerritserver.cpp b/src/plugins/git/gerrit/gerritserver.cpp index 3c8d028fdf..990279951d 100644 --- a/src/plugins/git/gerrit/gerritserver.cpp +++ b/src/plugins/git/gerrit/gerritserver.cpp @@ -126,9 +126,11 @@ bool GerritServer::fillFromRemote(const QString &remote, const GerritParameters else return false; - user.userName = r.userName.isEmpty() ? parameters.server.user.userName : r.userName; if (r.host.contains("github.com")) // Clearly not gerrit return false; + host = r.host; + port = r.port; + user.userName = r.userName.isEmpty() ? parameters.server.user.userName : r.userName; if (type != GerritServer::Ssh) { curlBinary = parameters.curl; if (curlBinary.isEmpty() || !QFile::exists(curlBinary)) |