fetch-pack: eliminate spurious error messages
[gitweb.git] / builtin / receive-pack.c
index fbfa1289c1e9122f698f54547b7aff5bfc8ca95c..2cb854feb4b3a701201ef683c6644aaa852d50b5 100644 (file)
@@ -979,7 +979,8 @@ int cmd_receive_pack(int argc, const char **argv, const char *prefix)
                        const char *argv_gc_auto[] = {
                                "gc", "--auto", "--quiet", NULL,
                        };
-                       run_command_v_opt(argv_gc_auto, RUN_GIT_CMD);
+                       int opt = RUN_GIT_CMD | RUN_COMMAND_STDOUT_TO_STDERR;
+                       run_command_v_opt(argv_gc_auto, opt);
                }
                if (auto_update_server_info)
                        update_server_info(0);