summaryrefslogtreecommitdiff
path: root/builtin/fetch.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-08-16 01:19:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-08-18 17:14:19 (GMT)
commit6fceed3bea59d747c160972c67663e8b8c281229 (patch)
tree37310e45ab1f7db9d88f187bed399c8ecde6c14e /builtin/fetch.c
parent1991006cb9c84ec11de8a5ebf9e419f0ac1f00d0 (diff)
downloadgit-6fceed3bea59d747c160972c67663e8b8c281229.zip
git-6fceed3bea59d747c160972c67663e8b8c281229.tar.gz
git-6fceed3bea59d747c160972c67663e8b8c281229.tar.bz2
fetch: silence git-gc if --quiet is given
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 5f06114..159fb7e 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);