aboutsummaryrefslogtreecommitdiff
path: root/git-gc.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-12-27 14:23:21 -0800
committerJunio C Hamano <junkio@cox.net>2006-12-27 14:23:21 -0800
commita3c11db9ecf5c2a1ec1b25ba809cecb3747750d4 (patch)
treecdd48c94b588f40b114a1015588c154fb8b1f01f /git-gc.sh
parent8f57b0a0fbfc0a6289bbf126f10ae041f0b508aa (diff)
downloadgit-a3c11db9ecf5c2a1ec1b25ba809cecb3747750d4.tar.gz
git-a3c11db9ecf5c2a1ec1b25ba809cecb3747750d4.tar.xz
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 <junkio@cox.net>
Diffstat (limited to 'git-gc.sh')
-rwxr-xr-xgit-gc.sh2
1 files changed, 1 insertions, 1 deletions
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