Simplify is_kept_pack()
[gitweb.git] / git-repack.sh
index 86000151ccbe259132c6cf25d6c23e3f763aba06..a736009c67ec938485c16aa1760b4e56d2e4cc6f 100755 (executable)
@@ -68,10 +68,13 @@ 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 "$existing"
+               then
+                       args="--kept-pack-only"
+               fi
                if test -n "$args" -a -n "$unpack_unreachable" -a \
                        -n "$remove_redundant"
                then