Simplify fetch transport API to just one function
[gitweb.git] / builtin-fetch.c
index a041df9faf7e612bf84e588834446c0cfaf67620..f5a2718acc490ce9c746d2bf12db84c5a5cc0481 100644 (file)
@@ -355,7 +355,7 @@ static int do_fetch(struct transport *transport,
                no_tags = 1;
 
        if (!transport->ops || !transport->ops->get_refs_list ||
-           !(transport->ops->fetch_refs || transport->ops->fetch_objs))
+           !transport->ops->fetch)
                die("Don't know how to fetch from %s", transport->url);
 
        /* if not appending, truncate FETCH_HEAD */