X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Frev_control%2Fgit_scruncher.sh;fp=scripts%2Frev_control%2Fgit_scruncher.sh;h=76ca12deaf5c22b19cb3750fc9a22591d0b2c0ec;hb=c3859c54f45adfb296858249c26a9d1b09c94112;hp=0000000000000000000000000000000000000000;hpb=ba3f62c381e322117a57d1e09b0e7529d25d44ed;p=feisty_meow.git 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" + +