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.tokkee.org/?a=commitdiff_plain;h=a3c11db9ecf5c2a1ec1b25ba809cecb3747750d4;p=git.git 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 --- diff --git a/git-gc.sh b/git-gc.sh index e55ed19fb..6de55f729 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