X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-repack.sh;h=4d313d136e64678b99179b2e1dce7a1beaa36d04;hb=c6576f912fc34193a02d7ec587484f7c2ce3fe77;hp=d39eb6cea6174ac65f1cc13c98e4abeab3a90903;hpb=81b84bcbe3cc6a29a62fb1a69c68764ad6c0feeb;p=git.git diff --git a/git-repack.sh b/git-repack.sh index d39eb6cea..4d313d136 100755 --- a/git-repack.sh +++ b/git-repack.sh @@ -71,19 +71,16 @@ case ",$all_into_one," in existing="$existing $e" fi done - fi - if test -z "$args" - then - args='--unpacked --incremental' - elif test -n "$unpack_unreachable" - then - args="$args $unpack_unreachable" + if test -n "$args" -a -n "$unpack_unreachable" + then + args="$args $unpack_unreachable" + fi fi ;; esac args="$args $local $quiet $no_reuse$extra" -names=$(git pack-objects --non-empty --all --reflog $args