summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-08-27 11:55:00 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-08-27 11:55:00 -0700
commit2df9988470d8f1ad82a642eb6d5b2ddde1512bc0 (patch)
tree5a10c4258125a42765dc02b5bef1fc2a877409d1 /builtin
parentMerge branch 'ab/diff-write-incomplete-line' (diff)
parentreceive-pack: do not leak output from auto-gc to standard output (diff)
downloadtgif-2df9988470d8f1ad82a642eb6d5b2ddde1512bc0.tar.xz
Merge branch 'bc/receive-pack-stdout-protection'
When "git push" triggered the automatic gc on the receiving end, a message from "git prune" that said it was removing cruft leaked to the standard output, breaking the communication protocol. * bc/receive-pack-stdout-protection: receive-pack: do not leak output from auto-gc to standard output t/t5400: demonstrate breakage caused by informational message from prune
Diffstat (limited to 'builtin')
-rw-r--r--builtin/receive-pack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c
index 0afb8b2896..3f05d971ec 100644
--- a/builtin/receive-pack.c
+++ b/builtin/receive-pack.c
@@ -977,7 +977,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);