forked from qt-creator/qt-creator
Git: Support file names with spaces
Change-Id: I19fa6fbcbf480b4a6c31cf628f8ca392f7bd7ef2 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
a65520f92a
commit
8c77b8c9d7
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user