Code

Merge branch 'jc/unseekable-bundle'
[git.git] / transport.c
index c048ef179b732c2b1e1ca6531b196b313f0f05ee..4ff21ad28d89c6a4fc39628d358662bc7790ffde 100644 (file)
@@ -907,7 +907,7 @@ struct transport *transport_get(struct remote *remote, const char *url)
                ret->fetch = fetch_objs_via_rsync;
                ret->push = rsync_transport_push;
                ret->smart_options = NULL;
-       } else if (is_local(url) && is_file(url)) {
+       } else if (is_local(url) && is_file(url) && is_bundle(url, 1)) {
                struct bundle_transport_data *data = xcalloc(1, sizeof(*data));
                ret->data = data;
                ret->get_refs_list = get_refs_from_bundle;