From 58926c4715f85d917bd1fec14afc35dd7ee5f380 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Mon, 26 Sep 2011 00:45:58 +0200 Subject: [PATCH] git: fix FillEmptyDirectories (somewhat) --- 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 7dac625f..a3c02a4c 100755 --- a/SparkleLib/Git/SparkleRepoGit.cs +++ b/SparkleLib/Git/SparkleRepoGit.cs @@ -516,7 +516,7 @@ namespace SparkleLib { private void FillEmptyDirectories (string path) { foreach (string child_path in Directory.GetDirectories (path)) { - if (path.EndsWith (".git") || path.EndsWith (".notes")) + if (child_path.EndsWith (".git") || child_path.EndsWith (".notes")) continue; FillEmptyDirectories (child_path);