diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2014-08-16 05:19:28 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-08-18 21:14:19 +0400 |
commit | 6fceed3bea59d747c160972c67663e8b8c281229 (patch) | |
tree | 37310e45ab1f7db9d88f187bed399c8ecde6c14e /builtin | |
parent | 1991006cb9c84ec11de8a5ebf9e419f0ac1f00d0 (diff) |
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')
-rw-r--r-- | builtin/fetch.c | 2 |
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); |