X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Frev_control%2Fcompact_git.sh;h=88efcdaae62007f0dfbf2f5188699c874cf0adaa;hb=8eefcad20d2254166483e10803c6e2fe90b4f3d5;hp=abc626a53c36f8b97e7466148b426edc30467043;hpb=37d9e7fa53f51df80fb366443b1e5714ecdd474b;p=feisty_meow.git diff --git a/scripts/rev_control/compact_git.sh b/scripts/rev_control/compact_git.sh index abc626a5..88efcdaa 100644 --- a/scripts/rev_control/compact_git.sh +++ b/scripts/rev_control/compact_git.sh @@ -7,6 +7,9 @@ fi pushd "$prune_dir" echo cleaning git in directory $(pwd) git fsck --full +check_if_failed "git fsck" git gc --prune=today --aggressive +check_if_failed "git gc" git repack +check_if_failed "git repack" popd