X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Frev_control%2Fcompact_git.sh;h=5d32cc6d7617cbabee79327f1f4ec27250f2f6e2;hb=baf5d7c693e351bd775114380dc0111bc3e4028e;hp=c1a22ef0b5c45d41cfcddd3764aa61ed88a97d5d;hpb=9f3e83fc4e946639c89eeb37b54c21ecc4f40425;p=feisty_meow.git diff --git a/scripts/rev_control/compact_git.sh b/scripts/rev_control/compact_git.sh index c1a22ef0..5d32cc6d 100644 --- a/scripts/rev_control/compact_git.sh +++ b/scripts/rev_control/compact_git.sh @@ -12,18 +12,18 @@ if [ -z "$prune_dir" ]; then prune_dir="$(pwd)" fi pushd "$prune_dir" &>/dev/null -test_or_die "changing to directory: $prune_dir" +exit_on_error "changing to directory: $prune_dir" echo "cleaning git repo in directory $(pwd)" git fsck --full -test_or_die "git fsck" +exit_on_error "git fsck" git gc --prune=today --aggressive -test_or_die "git gc" +exit_on_error "git gc" git repack -test_or_die "git repack" +exit_on_error "git repack" popd &>/dev/null