git: filling empty dirs: don't bother removing the .empty
This commit is contained in:
parent
138c55ba91
commit
62b0bc2524
|
@ -522,12 +522,8 @@ namespace SparkleLib {
|
||||||
FillEmptyDirectories (child_path);
|
FillEmptyDirectories (child_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Directory.GetFiles (path).Length == 0) {
|
if (Directory.GetFiles (path).Length == 0)
|
||||||
File.Create (Path.Combine (path, ".empty")).Close ();
|
File.Create (Path.Combine (path, ".empty")).Close ();
|
||||||
|
|
||||||
} else if (File.Exists (Path.Combine (path, ".empty"))) {
|
|
||||||
File.Delete (Path.Combine (path, ".empty"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue