]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-repack.sh
repack: do not fall back to incremental repacking with [-a|-A]
[thirdparty/git.git] / git-repack.sh
index 8bb22014b92720c0b8b9df922801d6436c639ffb..4d313d136e64678b99179b2e1dce7a1beaa36d04 100755 (executable)
@@ -71,13 +71,10 @@ 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