Commit 8c77b8c9 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Tobias Hunger
Browse files

Git: Support file names with spaces

Change-Id: I19fa6fbcbf480b4a6c31cf628f8ca392f7bd7ef2
Reviewed-by: default avatarTobias Hunger <>
parent a65520f9
......@@ -165,7 +165,10 @@ bool CommitData::parseFilesFromStatus(const QString &output)
QTC_ASSERT( == 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;
Supports Markdown
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