Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jt/fetch-no-redundant-tag-fetch-map' into maint
author
Junio C Hamano
<gitster@pobox.com>
Tue, 17 Jan 2017 23:19:09 +0000
(15:19 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 17 Jan 2017 23:19:09 +0000
(15:19 -0800)
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
builtin/fetch.c
patch
|
blob
|
history
raw
(from parent 1:
d4a682d
)
diff --git
a/builtin/fetch.c
b/builtin/fetch.c
index b6a5597cbf332fc56b5feabfd29d03c98d4d6686..1d77e58a00af528d2d883690b30b9bf48df6d2aa 100644
(file)
--- 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 {