forked from qt-creator/qt-creator
Gerrit: Do not pass username to curl for REST requests
It is set in .netrc anyway, and there is a regression in curl that causes it to fail when passing the user name. See https://github.com/curl/curl/issues/8653 Change-Id: Ic7aa2d874884db71f71d162486acf4e054eab7e9 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
0a2510edcb
commit
f8c3d860fc
@@ -120,7 +120,7 @@ QString GerritServer::url(UrlType urlType) const
|
||||
case Https: protocol = "https"; break;
|
||||
}
|
||||
QString res = protocol + "://";
|
||||
if (type == Ssh || urlType != DefaultUrl)
|
||||
if (type == Ssh || urlType == UrlWithHttpUser)
|
||||
res += hostArgument();
|
||||
else
|
||||
res += host;
|
||||
|
Reference in New Issue
Block a user