]> git.phdru.name Git - git-scripts.git/blobdiff - repack-not-packed
Run git gc --aggressive before repack
[git-scripts.git] / repack-not-packed
index 27cc8f29e6b9528e5d0cfc5dff76be388a71abc3..28683a1f0afd70fc406b5d07e4052db6d72cbdbe 100755 (executable)
@@ -4,5 +4,7 @@ prog_dir=`dirname "$0"`
 for d in `"$prog_dir"/ls-not-packed`
 do
    echo "----- $d -----" && cd "$d" &&
-   git repack -a -d --depth=250 --window=250 || exit 1
+   git gc --aggressive &&
+   git repack -a -d --depth=250 --window=250 &&
+   git fsck --strict || exit 1
 done