]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/fetch.c
fetch: do not redundantly calculate tag refmap
[thirdparty/git.git] / builtin / fetch.c
index e4639d8eb1d5fda586520f10271c05a0897f2ea5..606364593ea272bf5c16715cc06ae0dc74de4d47 100644 (file)
@@ -347,9 +347,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 {