repo git: Fix endless loop when adding empty folders. Closes #967

This commit is contained in:
Hylke Bons 2012-09-23 12:10:51 +01:00
parent 1c156b5e5d
commit 9a7b5b8827

View file

@ -880,7 +880,7 @@ namespace SparkleLib.Git {
string line = git_status.StandardOutput.ReadLine ();
if (line.EndsWith (".empty") || line.EndsWith (".empty\""))
continue;
line = line.Replace (".empty", "");
if (line.StartsWith ("R")) {
string path = line.Substring (3, line.IndexOf (" -> ") - 3).Trim ("\"".ToCharArray ());