X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-repack.sh;h=0868734723b3c96144bfa9360a9e19ebae1995f7;hb=9affecbc89538b6fd63f772b6f14047bced9345e;hp=be6db5e805d62e0440f7de3c1f6ee3fcd16a2ed3;hpb=2990034f1ed2c3d85d23d5611a1f04d317f785ac;p=git.git diff --git a/git-repack.sh b/git-repack.sh index be6db5e80..086873472 100755 --- a/git-repack.sh +++ b/git-repack.sh @@ -60,6 +60,7 @@ case ",$all_into_one," in args='--unpacked --incremental' ;; ,t,) + args= existing= if [ -d "$PACKDIR" ]; then for e in `cd "$PACKDIR" && find . -type f -name '*.pack' \ | sed -e 's/^\.\///' -e 's/\.pack$//'` @@ -67,11 +68,10 @@ case ",$all_into_one," in if [ -e "$PACKDIR/$e.keep" ]; then : keep else - args="$args --unpacked=$e.pack" existing="$existing $e" fi done - if test -n "$args" -a -n "$unpack_unreachable" -a \ + if test -n "$existing" -a -n "$unpack_unreachable" -a \ -n "$remove_redundant" then args="$args $unpack_unreachable" @@ -181,5 +181,5 @@ fi case "$no_update_info" in t) : ;; -*) git-update-server-info ;; +*) git update-server-info ;; esac