summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-12-28 14:08:47 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-12-28 14:08:47 -0800
commit2546de27c31c65cd4a94782cc9939a662d7f837c (patch)
tree6a1fcda6c8fa8f5ed7e55c5b11518030f0ced722 /builtin
parentMerge branch 'js/enhanced-version-info' (diff)
parenttransport: make transport vtable more private (diff)
downloadtgif-2546de27c31c65cd4a94782cc9939a662d7f837c.tar.xz
Merge branch 'jt/transport-hide-vtable'
Code clean-up. * jt/transport-hide-vtable: transport: make transport vtable more private clone, fetch: remove redundant transport check
Diffstat (limited to 'builtin')
-rw-r--r--builtin/clone.c3
-rw-r--r--builtin/fetch.c3
2 files changed, 0 insertions, 6 deletions
diff --git a/builtin/clone.c b/builtin/clone.c
index 6ad0ab3fa4..2da71db107 100644
--- a/builtin/clone.c
+++ b/builtin/clone.c
@@ -1083,9 +1083,6 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
warning(_("--local is ignored"));
transport->cloning = 1;
- if (!transport->get_refs_list || (!is_local && !transport->fetch))
- die(_("Don't know how to clone %s"), transport->url);
-
transport_set_option(transport, TRANS_OPT_KEEP, "yes");
if (option_depth)
diff --git a/builtin/fetch.c b/builtin/fetch.c
index e656746ab9..7bbcd26faf 100644
--- a/builtin/fetch.c
+++ b/builtin/fetch.c
@@ -1095,9 +1095,6 @@ static int do_fetch(struct transport *transport,
tags = TAGS_UNSET;
}
- if (!transport->get_refs_list || !transport->fetch)
- die(_("Don't know how to fetch from %s"), transport->url);
-
/* if not appending, truncate FETCH_HEAD */
if (!append && !dry_run) {
retcode = truncate_fetch_head();