forked from qt-creator/qt-creator
VCS: Normalize newlines on checkout
Change-Id: I211e54348751618f67f04e0795573b055ddfe98b Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
2555c21158
commit
2fe1fec16b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user