summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-01-17 23:19:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-01-17 23:19:09 (GMT)
commit8ee6fc96f0d1800bc570568efe7d83afebd2a64c (patch)
tree53135af6c385c9a65647888d8ae336a2163fae48 /builtin
parentd4a682d42f227be74c49d96eca9b86e35236f7a3 (diff)
parent6cc823c5c15911b27a410cfd47abc81cc10c0003 (diff)
downloadgit-8ee6fc96f0d1800bc570568efe7d83afebd2a64c.zip
git-8ee6fc96f0d1800bc570568efe7d83afebd2a64c.tar.gz
git-8ee6fc96f0d1800bc570568efe7d83afebd2a64c.tar.bz2
Merge branch 'jt/fetch-no-redundant-tag-fetch-map' into maint
Code cleanup to avoid using redundant refspecs while fetching with the --tags option. * jt/fetch-no-redundant-tag-fetch-map: fetch: do not redundantly calculate tag refmap
Diffstat (limited to 'builtin')
-rw-r--r--builtin/fetch.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c
index b6a5597..1d77e58 100644
--- a/builtin/fetch.c
+++ b/builtin/fetch.c
@@ -359,9 +359,6 @@ static struct ref *get_ref_map(struct transport *transport,
for (i = 0; i < fetch_refspec_nr; i++)
get_fetch_map(ref_map, &fetch_refspec[i], &oref_tail, 1);
-
- if (tags == TAGS_SET)
- get_fetch_map(remote_refs, tag_refspec, &tail, 0);
} else if (refmap_array) {
die("--refmap option is only meaningful with command-line refspec(s).");
} else {