From: Junio C Hamano Date: Wed, 27 Dec 2006 22:23:21 +0000 (-0800) Subject: Use 'repack -a -d -l' instead of 'repack -a -d' in git-gc X-Git-Tag: v1.5.0-rc1~181^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a3c11db9ecf5c2a1ec1b25ba809cecb3747750d4?ds=inline;hp=--cc Use 'repack -a -d -l' instead of 'repack -a -d' in git-gc Otherwise we would end up slurping objects we borrow from alternates. Signed-off-by: Junio C Hamano --- a3c11db9ecf5c2a1ec1b25ba809cecb3747750d4 diff --git a/git-gc.sh b/git-gc.sh index e55ed19fbd..6de55f7292 100755 --- a/git-gc.sh +++ b/git-gc.sh @@ -10,6 +10,6 @@ SUBDIRECTORY_OK=Yes git-pack-refs --prune && git-reflog expire --all && -git-repack -a -d && +git-repack -a -d -l && git-prune && git-rerere gc || exit