Skip to content

Commit 40e907b

Browse files
radfordJunio C Hamano
authored andcommitted
fix repacking with lots of tags
Use git-rev-list's --all instead of git-rev-parse's to keep from hitting the shell's argument list length limits when repacking with lots of tags. Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 23091e9 commit 40e907b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

git-repack.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,10 @@ PACKDIR="$GIT_OBJECT_DIRECTORY/pack"
2929
case ",$all_into_one," in
3030
,,)
3131
rev_list='--unpacked'
32-
rev_parse='--all'
3332
pack_objects='--incremental'
3433
;;
3534
,t,)
3635
rev_list=
37-
rev_parse='--all'
3836
pack_objects=
3937

4038
# Redundancy check in all-into-one case is trivial.
@@ -43,7 +41,7 @@ case ",$all_into_one," in
4341
;;
4442
esac
4543
pack_objects="$pack_objects $local $quiet $no_reuse_delta"
46-
name=$(git-rev-list --objects $rev_list $(git-rev-parse $rev_parse) 2>&1 |
44+
name=$(git-rev-list --objects --all $rev_list 2>&1 |
4745
git-pack-objects --non-empty $pack_objects .tmp-pack) ||
4846
exit 1
4947
if [ -z "$name" ]; then

0 commit comments

Comments
 (0)