diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-12-29 01:08:47 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-29 01:08:47 +0300 |
commit | 2546de27c31c65cd4a94782cc9939a662d7f837c (patch) | |
tree | 6a1fcda6c8fa8f5ed7e55c5b11518030f0ced722 /builtin | |
parent | 58d1772c8562c4777414d9b97de127ae5b35ad81 (diff) | |
parent | e967ca38473a05abf3e8f7a025c6b9bee487aa4f (diff) |
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.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(); |