Git: Support file names with spaces

Change-Id: I19fa6fbcbf480b4a6c31cf628f8ca392f7bd7ef2
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Orgad Shaneh
2012-06-20 13:07:53 +03:00
committed by Tobias Hunger
parent a65520f92a
commit 8c77b8c9d7

View File

@@ -165,7 +165,10 @@ bool CommitData::parseFilesFromStatus(const QString &output)
continue;
}
QTC_ASSERT(line.at(2) == QLatin1Char(' '), continue);
if (!checkLine(line.mid(0, 2), line.mid(3), &files))
QString file = line.mid(3);
if (file.startsWith(QLatin1Char('"')))
file.remove(0, 1).chop(1);
if (!checkLine(line.mid(0, 2), file, &files))
return false;
}