Commit 2fe1fec1 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Tobias Hunger

VCS: Normalize newlines on checkout

Change-Id: I211e54348751618f67f04e0795573b055ddfe98b
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 2555c211
......@@ -138,8 +138,8 @@ void ProcessCheckoutJob::addStep(const QString &binary,
void ProcessCheckoutJob::slotOutput()
{
const QByteArray data = d->process->readAllStandardOutput();
const QString s = QString::fromLocal8Bit(data, data.endsWith('\n') ? data.size() - 1: data.size());
const QString s = Utils::SynchronousProcess::normalizeNewlines(
QString::fromLocal8Bit(d->process->readAllStandardOutput()));
if (debug)
qDebug() << s;
emit output(s);
......
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