aboutsummaryrefslogtreecommitdiff
path: root/builtin/fetch.c
diff options
context:
space:
mode:
authorDan Johnson <computerdruid@gmail.com>2012-09-05 17:22:19 -0400
committerJunio C Hamano <gitster@pobox.com>2012-09-07 10:01:35 -0700
commit85566460897ee76555a7c90a951fe2d50272eb5e (patch)
treebdb819f0c49f17d4f33a38bcd3de518be99a8a09 /builtin/fetch.c
parent50d89ad6542c8acafefa6d42f8b42dfa9b8fafe1 (diff)
downloadgit-85566460897ee76555a7c90a951fe2d50272eb5e.tar.gz
git-85566460897ee76555a7c90a951fe2d50272eb5e.tar.xz
fetch --all: pass --tags/--no-tags through to each remote
When fetch is invoked with --all, we need to pass the tag-following preference to each individual fetch; without this, we will always auto-follow tags, preventing us from fetching the remote tags into a remote-specific namespace, for example. Reported-by: Oswald Buddenhagen <ossi@kde.org> Signed-off-by: Dan Johnson <ComputerDruid@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fetch.c')
-rw-r--r--builtin/fetch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c
index 6196e9179..4494aed0c 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)