From 994ccbb07b7167e8a56c13cae3eb398107734028 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Wed, 18 Jan 2012 01:50:47 +0000 Subject: [PATCH] fetcher git: Add some memory limiting settings to the config. Closes #519 --- SparkleLib/Git/SparkleFetcherGit.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/SparkleLib/Git/SparkleFetcherGit.cs b/SparkleLib/Git/SparkleFetcherGit.cs index bd85559f..e04a3045 100755 --- a/SparkleLib/Git/SparkleFetcherGit.cs +++ b/SparkleLib/Git/SparkleFetcherGit.cs @@ -186,9 +186,17 @@ namespace SparkleLib { string n = Environment.NewLine; - // Show special characters in the logs config = config.Replace ("[core]" + n, - "[core]" + n + "\tquotepath = false" + n); + "[core]" + n + "\tquotepath = false" + n + // Show special characters in the logs + "\tpackedGitLimit = 128m" + n + + "\tpackedGitWindowSize = 128m" + n); + + config = config.Replace ("[remote \"origin\"]" + n, + "[pack]" + n + + "\tdeltaCacheSize = 128m" + n + + "\tpackSizeLimit = 128m" + n + + "\twindowMemory = 128m" + n + + "[remote \"origin\"]" + n); // Be case sensitive explicitly to work on Mac config = config.Replace ("ignorecase = true", "ignorecase = false");