From d776bac8f8ac11d56a60109342e55aec209361da Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 24 Dec 2017 14:40:55 -0500 Subject: [PATCH] new script to minimize git checkout memory usage --- scripts/rev_control/git_scruncher.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 scripts/rev_control/git_scruncher.sh diff --git a/scripts/rev_control/git_scruncher.sh b/scripts/rev_control/git_scruncher.sh new file mode 100644 index 00000000..76ca12de --- /dev/null +++ b/scripts/rev_control/git_scruncher.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# check for whether we see a .git folder. +if [ ! -d ".git" ]; then + echo This script needs to run in the directory where a git repository lives, + echo but we do not see a .git directory here. + exit 1 +fi + +# makes git checkouts not be as intensive on the server. +git config --global pack.windowMemory "100m" +git config --global pack.SizeLimit "100m" +git config --global pack.threads "1" + + -- 2.34.1