summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-01-10 15:24:23 -0800
committerJunio C Hamano <gitster@pobox.com>2017-01-10 15:24:23 -0800
commit06cfa9f31004106f8214b766fa990d451b754b66 (patch)
treef382155326a360d5efda4331ec14a2469e926869
parentf01c1ff4f772617132464b554e5bac9c395b66ba (diff)
parent6cc823c5c15911b27a410cfd47abc81cc10c0003 (diff)
downloadgit-06cfa9f31004106f8214b766fa990d451b754b66.tar.gz
Merge branch 'jt/fetch-no-redundant-tag-fetch-map'
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
-rw-r--r--builtin/fetch.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c
index fc74c8471c..f1570e3464 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 {