summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2018-05-16 15:58:02 -0700
committerJunio C Hamano <gitster@pobox.com>2018-05-18 06:19:43 +0900
commit953035009601a971137ecc2c7d5e662189cfda50 (patch)
tree49776e8ea2b13acde19161f9fba8fc1df99b203a /remote.c
parente5349abf93dfde8052bbcabb4be1dba77feb7053 (diff)
downloadgit-953035009601a971137ecc2c7d5e662189cfda50.tar.gz
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 26842ce37f..4a9bddf0d7 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);