git: fix crash when committing renames with spaces. closes #1267

This commit is contained in:
Hylke Bons 2013-05-04 17:06:27 -04:00
parent 329fe4885f
commit 9cf5f544a8

View file

@ -1015,6 +1015,7 @@ namespace SparkleLib.Git {
while (!git_status.StandardOutput.EndOfStream) {
string line = git_status.StandardOutput.ReadLine ();
line = line.Trim ();
if (line.EndsWith (".empty") || line.EndsWith (".empty\""))
line = line.Replace (".empty", "");