From 195fc29ef5ab23757628701f528af0bfa35005da Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Wed, 3 Aug 2022 12:02:53 +0300 Subject: [PATCH] Gerrit: Show command and failures in testConnection Can be useful when authentication fails. Change-Id: Ibd3700c4ce9cc76b0d9c4cde32730a4e1906ccd6 Reviewed-by: Jarek Kobus --- src/plugins/git/gerrit/gerritserver.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/git/gerrit/gerritserver.cpp b/src/plugins/git/gerrit/gerritserver.cpp index 0e27be74f1e..df8f7dcd370 100644 --- a/src/plugins/git/gerrit/gerritserver.cpp +++ b/src/plugins/git/gerrit/gerritserver.cpp @@ -245,8 +245,7 @@ int GerritServer::testConnection() { static GitClient *const client = GitClient::instance(); const QStringList arguments = curlArguments() << (url(RestUrl) + accountUrlC); - const CommandResult result = client->vcsFullySynchronousExec({}, {curlBinary, arguments}, - VcsCommand::NoOutput); + const CommandResult result = client->vcsFullySynchronousExec({}, {curlBinary, arguments}); if (result.result() == ProcessResult::FinishedWithSuccess) { QString output = result.cleanedStdOut(); // Gerrit returns an empty response for /p/qt-creator/a/accounts/self