From a3c11db9ecf5c2a1ec1b25ba809cecb3747750d4 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 27 Dec 2006 14:23:21 -0800 Subject: [PATCH] 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 --- git-gc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.4.GIT