summaryrefslogtreecommitdiff
path: root/builtin/fetch.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-12-28 14:08:47 -0800
committerJunio C Hamano <gitster@pobox.com>2017-12-28 14:08:47 -0800
commit2546de27c31c65cd4a94782cc9939a662d7f837c (patch)
tree6a1fcda6c8fa8f5ed7e55c5b11518030f0ced722 /builtin/fetch.c
parent58d1772c8562c4777414d9b97de127ae5b35ad81 (diff)
parente967ca38473a05abf3e8f7a025c6b9bee487aa4f (diff)
downloadgit-2546de27c31c65cd4a94782cc9939a662d7f837c.tar.gz
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/fetch.c')
-rw-r--r--builtin/fetch.c3
1 files changed, 0 insertions, 3 deletions
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();