index-pack: work around thread-unsafe pread()
[gitweb.git] / builtin / prune.c
index beb0dc942c1263ecf4aa5ab87b10520f481ebe43..de43b26cfe9c7610c13e3320bdac9fa2049e4db6 100644 (file)
@@ -180,5 +180,9 @@ int cmd_prune(int argc, const char **argv, const char *prefix)
        s = mkpathdup("%s/pack", get_object_directory());
        remove_temporary_files(s);
        free(s);
+
+       if (is_repository_shallow())
+               prune_shallow(show_only);
+
        return 0;
 }