Make git clone output nicer

Do pass on the character that caused the line split in the signal from
SynchronousProcess. That way the UI can handle '\r' properly, leading
to a nicer git output.

Task-number: QTCREATORBUG-16611
Change-Id: I1d73ec9061689267dfffd776f32ab9c10108d10e
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2016-07-18 11:58:31 +02:00
parent f3a23813fd
commit 6f3bf106b5

View File

@@ -239,7 +239,7 @@ QString ChannelBuffer::linesRead()
return QString();
// Get completed lines and remove them from the incompleteLinesBuffer:
const QString lines = SynchronousProcess::normalizeNewlines(incompleteLineBuffer.left(lastLineIndex));
const QString lines = SynchronousProcess::normalizeNewlines(incompleteLineBuffer.left(lastLineIndex + 1));
incompleteLineBuffer = incompleteLineBuffer.mid(lastLineIndex + 1);
return lines;