X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=gc-and-repack;h=80548d3329c8b2d3da398a18ea767a64421476e4;hb=d208ffbad2671a5c15f4795939ad80c4be6a02ad;hp=ff1633817750c1b347b851dc649876fe3a6f87ff;hpb=262b6878a0cdf41c1429389cce6940cec177e262;p=git-scripts.git diff --git a/gc-and-repack b/gc-and-repack index ff16338..80548d3 100755 --- a/gc-and-repack +++ b/gc-and-repack @@ -1,10 +1,5 @@ #! /bin/sh -prog_dir=`dirname "$0"` -for d in `"$prog_dir"/ls-not-packed` -do - echo "----- $d -----" && cd "$d" && - git gc --aggressive && - git repack -a -d -f --depth=250 --window=250 && - git fsck --strict || exit 1 -done +git gc --aggressive && +git repack -a -d -f --depth=20 --window=250 && +exec git fsck --strict