From 62b0bc252408e657524002199680d9f6a127d993 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 22 Sep 2011 20:11:08 +0100 Subject: [PATCH] git: filling empty dirs: don't bother removing the .empty --- SparkleLib/Git/SparkleRepoGit.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/SparkleLib/Git/SparkleRepoGit.cs b/SparkleLib/Git/SparkleRepoGit.cs index de6854cc..7dac625f 100755 --- a/SparkleLib/Git/SparkleRepoGit.cs +++ b/SparkleLib/Git/SparkleRepoGit.cs @@ -522,12 +522,8 @@ namespace SparkleLib { FillEmptyDirectories (child_path); } - if (Directory.GetFiles (path).Length == 0) { + if (Directory.GetFiles (path).Length == 0) File.Create (Path.Combine (path, ".empty")).Close (); - - } else if (File.Exists (Path.Combine (path, ".empty"))) { - File.Delete (Path.Combine (path, ".empty")); - } }