mirror of
https://github.com/git/git
synced 2024-10-29 17:08:46 +00:00
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
This commit is contained in:
commit
06cfa9f310
1 changed files with 0 additions and 3 deletions
|
@ -359,9 +359,6 @@ static struct ref *get_ref_map(struct transport *transport,
|
||||||
|
|
||||||
for (i = 0; i < fetch_refspec_nr; i++)
|
for (i = 0; i < fetch_refspec_nr; i++)
|
||||||
get_fetch_map(ref_map, &fetch_refspec[i], &oref_tail, 1);
|
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) {
|
} else if (refmap_array) {
|
||||||
die("--refmap option is only meaningful with command-line refspec(s).");
|
die("--refmap option is only meaningful with command-line refspec(s).");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue