git: fix FillEmptyDirectories (somewhat)

This commit is contained in:
Hylke Bons 2011-09-26 00:45:58 +02:00
parent ffaaaf0123
commit 58926c4715

View file

@ -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);