Fix parsing of @{-1}@{1}
[gitweb.git] / git-repack.sh
index 8bb22014b92720c0b8b9df922801d6436c639ffb..458a497af810c7bb188a5aafb80c32aa0bc05264 100755 (executable)
@@ -71,13 +71,11 @@ 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" -a \
+                       -n "$remove_redundant"
+               then
+                       args="$args $unpack_unreachable"
+               fi
        fi
        ;;
 esac