forked from qt-creator/qt-creator
Gerrit: Show command and failures in testConnection
Can be useful when authentication fails. Change-Id: Ibd3700c4ce9cc76b0d9c4cde32730a4e1906ccd6 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
b3b36f7d2a
commit
195fc29ef5
@@ -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
|
||||
|
Reference in New Issue
Block a user