From 9a7b5b882760ee68c6d610853c6efccdd4e08ef5 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 23 Sep 2012 12:10:51 +0100 Subject: [PATCH] repo git: Fix endless loop when adding empty folders. Closes #967 --- SparkleLib/Git/SparkleRepoGit.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SparkleLib/Git/SparkleRepoGit.cs b/SparkleLib/Git/SparkleRepoGit.cs index 2658e36d..2504ba4b 100644 --- a/SparkleLib/Git/SparkleRepoGit.cs +++ b/SparkleLib/Git/SparkleRepoGit.cs @@ -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 ());