From: Oleg Broytman Date: Fri, 7 Nov 2014 18:08:52 +0000 (+0300) Subject: Do git fsck after repack X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=2b092d319925e0918f439caaa91c1652bad47d65 Do git fsck after repack --- diff --git a/repack-not-packed b/repack-not-packed index 27cc8f2..2af5ccb 100755 --- a/repack-not-packed +++ b/repack-not-packed @@ -4,5 +4,6 @@ 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 repack -a -d --depth=250 --window=250 && + git fsck --strict || exit 1 done