aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-09-14 11:54:19 -0700
committerJunio C Hamano <gitster@pobox.com>2012-09-14 11:54:19 -0700
commit0f80d8943f23a5ce5973556a144d4fe4195e16a7 (patch)
treeebf8e5c17fbdf77088a0847f60f15db4006ccf68 /builtin
parente9496f86db8ab8b9718adbce269b2f5b8936d1ea (diff)
parent85566460897ee76555a7c90a951fe2d50272eb5e (diff)
downloadgit-0f80d8943f23a5ce5973556a144d4fe4195e16a7.tar.gz
git-0f80d8943f23a5ce5973556a144d4fe4195e16a7.tar.xz
Merge branch 'dj/fetch-all-tags'
"git fetch --all", when passed "--no-tags", did not honor the "--no-tags" option while fetching from individual remotes (the same issue existed with "--tags", but combination "--all --tags" makes much less sense than "--all --no-tags"). * dj/fetch-all-tags: fetch --all: pass --tags/--no-tags through to each remote
Diffstat (limited to 'builtin')
-rw-r--r--builtin/fetch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c
index 24be754e1..d0dcc8888 100644
--- a/builtin/fetch.c
+++ b/builtin/fetch.c
@@ -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)