Disables automatic garbage collection on the repository

This commit is contained in:
Cyberboss
2017-10-03 14:52:49 -04:00
parent 49c8a63787
commit 4a865e9431
+9
View File
@@ -141,6 +141,8 @@ namespace TGServerService
{
if(Exists())
UpdateInterfaceDll(false);
if(LoadRepo() == null)
DisableGarbageCollectionNoLock();
}
bool RepoConfigsMatch()
@@ -265,6 +267,8 @@ namespace TGServerService
currentProgress = -1;
LoadRepo();
DisableGarbageCollectionNoLock();
//create an ssh remote for pushing
Repo.Network.Remotes.Add(SSHPushRemote, RepoURL.Replace("git://", "ssh://").Replace("https://", "ssh://"));
@@ -294,6 +298,11 @@ namespace TGServerService
}
}
void DisableGarbageCollectionNoLock()
{
Repo.Config.Set("gc.auto", false);
}
void BackupAndDeleteStaticDirectory()
{
if (Directory.Exists(StaticDirs))