Commit 3b22a48c authored by Kevin Funk's avatar Kevin Funk
Browse files

Fix debugging output for vcs/git

(To find out what's wrong on the CI)
parent dcc11960
......@@ -84,7 +84,7 @@ QDir dotGitDirectory(const QUrl& dirPath)
while (!dir.exists(gitDir) && dir.cdUp()) {} // cdUp, until there is a sub-directory called .git
if (dir.isRoot()) {
qWarning() << "couldn't find the git root for" << dirPath;
qCWarning(PLUGIN_GIT) << "couldn't find the git root for" << dirPath;
}
return dir;
......@@ -1194,7 +1194,7 @@ void GitPlugin::parseGitVersionOutput(DVcsJob* job)
m_oldVersion = false;
if (versionString.size() < minimumVersion.size()) {
m_oldVersion = true;
qWarning() << "invalid git version string:" << job->output().trimmed();
qCWarning(PLUGIN_GIT) << "invalid git version string:" << job->output().trimmed();
return;
}
foreach(int num, minimumVersion) {
......
......@@ -64,8 +64,8 @@ bool writeFile(const QString &path, const QString& content, QIODevice::OpenModeF
void GitInitTest::initTestCase()
{
AutoTestShell::init();
TestCore::initialize(Core::NoUi);
AutoTestShell::init({"kdevgit"});
TestCore::initialize();
m_plugin = new GitPlugin(TestCore::self());
}
......
......@@ -241,8 +241,9 @@ void DVcsJob::slotProcessError( QProcess::ProcessError err )
errorValue = "UnknownError";
break;
}
qCDebug(VCS) << "oops, found an error while running" << displayCommand << ":" << errorValue
qCDebug(VCS) << "Found an error while running" << displayCommand << ":" << errorValue
<< "Exit code is:" << d->childproc->exitCode();
qCDebug(VCS) << "Error:" << completeErrorText;
displayOutput(QString::fromLocal8Bit(d->errorOutput));
d->model->appendLine(i18n("Command finished with error %1.", errorValue));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment