Skip to content

Commit 8ee6fc9

Browse files
committed
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
2 parents d4a682d + 6cc823c commit 8ee6fc9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

builtin/fetch.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,6 @@ static struct ref *get_ref_map(struct transport *transport,
359359

360360
for (i = 0; i < fetch_refspec_nr; i++)
361361
get_fetch_map(ref_map, &fetch_refspec[i], &oref_tail, 1);
362-
363-
if (tags == TAGS_SET)
364-
get_fetch_map(remote_refs, tag_refspec, &tail, 0);
365362
} else if (refmap_array) {
366363
die("--refmap option is only meaningful with command-line refspec(s).");
367364
} else {

0 commit comments

Comments
 (0)