prune-packed: avoid implying "1" is DRY_RUN in prune_packed_objects()
[gitweb.git] / builtin / prune.c
index 85843d4f1728a907aafab9938b4c827990a7695f..59d1fdcecf2a3524eba97477127a32e9c415915a 100644 (file)
@@ -165,7 +165,7 @@ int cmd_prune(int argc, const char **argv, const char *prefix)
        stop_progress(&progress);
        prune_object_dir(get_object_directory());
 
-       prune_packed_objects(show_only);
+       prune_packed_objects(show_only ? PRUNE_PACKED_DRY_RUN : 0);
        remove_temporary_files(get_object_directory());
        s = mkpathdup("%s/pack", get_object_directory());
        remove_temporary_files(s);