summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2018-05-16 22:58:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-17 21:19:43 (GMT)
commit953035009601a971137ecc2c7d5e662189cfda50 (patch)
tree49776e8ea2b13acde19161f9fba8fc1df99b203a /remote.c
parente5349abf93dfde8052bbcabb4be1dba77feb7053 (diff)
downloadgit-953035009601a971137ecc2c7d5e662189cfda50.zip
git-953035009601a971137ecc2c7d5e662189cfda50.tar.gz
git-953035009601a971137ecc2c7d5e662189cfda50.tar.bz2
remote: remove add_prune_tags_to_fetch_refspec
Remove 'add_prune_tags_to_fetch_refspec()' function and instead have the only caller directly add the tag refspec using 'refspec_append()'. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/remote.c b/remote.c
index 26842ce..4a9bddf 100644
--- a/remote.c
+++ b/remote.c
@@ -77,11 +77,6 @@ static const char *alias_url(const char *url, struct rewrites *r)
return xstrfmt("%s%s", r->rewrite[longest_i]->base, url + longest->len);
}
-void add_prune_tags_to_fetch_refspec(struct remote *remote)
-{
- refspec_append(&remote->fetch, TAG_REFSPEC);
-}
-
static void add_url(struct remote *remote, const char *url)
{
ALLOC_GROW(remote->url, remote->url_nr + 1, remote->url_alloc);