MALLOC_CHECK: various clean-ups
[gitweb.git] / builtin / fetch.c
index 24be754e1b4444ea46752016ba77bdef1c892712..d0dcc8888f14e8305250afcab7eb4ca7a3f6648c 100644 (file)
@@ -858,6 +858,10 @@ static void add_options_to_argv(struct argv_array *argv)
                argv_array_push(argv, "--recurse-submodules");
        else if (recurse_submodules == RECURSE_SUBMODULES_ON_DEMAND)
                argv_array_push(argv, "--recurse-submodules=on-demand");
+       if (tags == TAGS_SET)
+               argv_array_push(argv, "--tags");
+       else if (tags == TAGS_UNSET)
+               argv_array_push(argv, "--no-tags");
        if (verbosity >= 2)
                argv_array_push(argv, "-v");
        if (verbosity >= 1)