X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=contrib%2Fexamples%2Fgit-gc.sh;h=2ae235b081ea9829a51758bba5a0d0d64111d32c;hb=63f328290a0edda617c0881a356c07280fbba459;hp=436d7caff5c26f7c0ff8c0a410bdabccdec0a900;hpb=bff898b894815ad291b35d213f1c022d1d16a9b9;p=git.git diff --git a/contrib/examples/git-gc.sh b/contrib/examples/git-gc.sh index 436d7caff..2ae235b08 100755 --- a/contrib/examples/git-gc.sh +++ b/contrib/examples/git-gc.sh @@ -30,8 +30,8 @@ notbare|"") esac test "true" != "$pack_refs" || -git-pack-refs --prune && -git-reflog expire --all && +git pack-refs --prune && +git reflog expire --all && git-repack -a -d -l && -$no_prune git-prune && -git-rerere gc || exit +$no_prune git prune && +git rerere gc || exit