X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-repack.sh;h=0868734723b3c96144bfa9360a9e19ebae1995f7;hb=a6e5ef7d9cc34199fb6618e1fbb57f3615d002f6;hp=00c597e97c8fd5a97105d2c68315cef414175669;hpb=acb0b7b01f64cf55d508b469eb2a351359c0cd82;p=git.git diff --git a/git-repack.sh b/git-repack.sh index 00c597e97..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"