summaryrefslogtreecommitdiff
path: root/builtin/fetch.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-08-16 08:19:28 +0700
committerJunio C Hamano <gitster@pobox.com>2014-08-18 10:14:19 -0700
commit6fceed3bea59d747c160972c67663e8b8c281229 (patch)
tree37310e45ab1f7db9d88f187bed399c8ecde6c14e /builtin/fetch.c
parent1991006cb9c84ec11de8a5ebf9e419f0ac1f00d0 (diff)
downloadgit-6fceed3bea59d747c160972c67663e8b8c281229.tar.gz
fetch: silence git-gc if --quiet is givennd/fetch-pass-quiet-to-gc-child-process
Noticed-by: Matthew Flaschen <mflaschen@wikimedia.org> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fetch.c')
-rw-r--r--builtin/fetch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c
index 5f06114218..159fb7e916 100644
--- a/builtin/fetch.c
+++ b/builtin/fetch.c
@@ -1197,6 +1197,8 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)
string_list_clear(&list, 0);
argv_array_pushl(&argv_gc_auto, "gc", "--auto", NULL);
+ if (verbosity < 0)
+ argv_array_push(&argv_gc_auto, "--quiet");
run_command_v_opt(argv_gc_auto.argv, RUN_GIT_CMD);
argv_array_clear(&argv_gc_auto);