]> git.phdru.name Git - git-scripts.git/blobdiff - repack-not-packed
Run git gc --aggressive before repack
[git-scripts.git] / repack-not-packed
index 2af5ccb399baf135ea25d159c865623c801d9704..28683a1f0afd70fc406b5d07e4052db6d72cbdbe 100755 (executable)
@@ -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