summaryrefslogtreecommitdiff
path: root/builtin-send-pack.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2009-08-05 16:22:36 -0400
committerJunio C Hamano <gitster@pobox.com>2009-08-05 20:14:09 -0700
commit120703292b2828d3c35c937b7f5e75ec570a42e9 (patch)
tree577e2cab5b6e57cbc88b8c7a9f4d5a6a79d61f5a /builtin-send-pack.c
parentafdeeb00eec471d86c9d421781ba8cb545be849c (diff)
downloadgit-120703292b2828d3c35c937b7f5e75ec570a42e9.tar.gz
transport: pass "quiet" flag to pack-objects
When pushing over the git protocol, pack-objects gives progress reports about the pack being sent. If "push" is given the --quiet flag, it now passes "-q" to pack-objects, suppressing this output. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-send-pack.c')
-rw-r--r--builtin-send-pack.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin-send-pack.c b/builtin-send-pack.c
index 47fb9f7baa..37e528e283 100644
--- a/builtin-send-pack.c
+++ b/builtin-send-pack.c
@@ -44,6 +44,7 @@ static int pack_objects(int fd, struct ref *refs, struct extra_have_objects *ext
NULL,
NULL,
NULL,
+ NULL,
};
struct child_process po;
int i;
@@ -53,6 +54,8 @@ static int pack_objects(int fd, struct ref *refs, struct extra_have_objects *ext
argv[i++] = "--thin";
if (args->use_ofs_delta)
argv[i++] = "--delta-base-offset";
+ if (args->quiet)
+ argv[i++] = "-q";
memset(&po, 0, sizeof(po));
po.argv = argv;
po.in = -1;