From: Oleg Broytman Date: Fri, 21 Nov 2014 11:43:02 +0000 (+0300) Subject: Run git gc --aggressive before repack X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=51d76a24a0136fe85b90361f2f8b68bc17860075;p=git-scripts.git Run git gc --aggressive before repack --- diff --git a/repack-not-packed b/repack-not-packed index 2af5ccb..28683a1 100755 --- a/repack-not-packed +++ b/repack-not-packed @@ -4,6 +4,7 @@ prog_dir=`dirname "$0"` for d in `"$prog_dir"/ls-not-packed` do echo "----- $d -----" && cd "$d" && + git gc --aggressive && git repack -a -d --depth=250 --window=250 && git fsck --strict || exit 1 done