Browse Source

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>
maint
Junio C Hamano 18 years ago
parent
commit
a3c11db9ec
  1. 2
      git-gc.sh

2
git-gc.sh

@ -10,6 +10,6 @@ SUBDIRECTORY_OK=Yes @@ -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

Loading…
Cancel
Save