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>
Jim Radford committed
Apr 2, 2006 at 20:50 UTC
40e907bff260a94306b1fe43d0fb829bf54e3103
1 file changed
+1
-3
git-repack.sh
+1
-3
@@ -29,12 +29,10 @@ PACKDIR="$GIT_OBJECT_DIRECTORY/pack"
29
case ",$all_into_one," in
30
,,)
31
rev_list='--unpacked'
32
- rev_parse='--all'
32
pack_objects='--incremental'
33
;;
34
,t,)
35
rev_list=
37
- rev_parse='--all'
36
pack_objects=
37
38
# Redundancy check in all-into-one case is trivial.
@@ -43,7 +41,7 @@ case ",$all_into_one," in
41
;;
42
esac
43
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 |
45
git-pack-objects --non-empty $pack_objects .tmp-pack) ||
46
exit 1
47
if [ -z "$name" ]; then