X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git-repack.sh;h=0868734723b3c96144bfa9360a9e19ebae1995f7;hb=6e353a5e5de9da021c7c6c0bc2dc5f95a39900a1;hp=00c597e97c8fd5a97105d2c68315cef414175669;hpb=1f398ee772552ba9763d979cf66566e48acfa302;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"