diff options
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/clone.c | 3 | ||||
-rw-r--r-- | builtin/fetch.c | 3 |
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(); |