Merge branch 'tl/userdiff-csharp-async'
[gitweb.git] / builtin / gc.c
index 7fc5c16254beb4175458b200a1316565ebf47bf3..f51e5a6500fc294cb719716671259de42f31bfe7 100644 (file)
@@ -461,6 +461,9 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
                        argv_array_push(&prune, prune_expire);
                        if (quiet)
                                argv_array_push(&prune, "--no-progress");
+                       if (repository_format_partial_clone)
+                               argv_array_push(&prune,
+                                               "--exclude-promisor-objects");
                        if (run_command_v_opt(prune.argv, RUN_GIT_CMD))
                                return error(FAILED_RUN, prune.argv[0]);
                }