]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/prune.c
prune: clean .git/shallow after pruning objects
[thirdparty/git.git] / builtin / prune.c
index 6366917c6de55e171a7f697b22f1de10293addf5..221404034995ba2fa4bb113c4015cc7eb5b01c75 100644 (file)
@@ -170,5 +170,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;
 }