X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=transport.c;h=51814b5da3064b617fa268a6b2bc6b3d6cb0b110;hb=dd98d88be7a2f3782e938701102a96cb09d284da;hp=c048ef179b732c2b1e1ca6531b196b313f0f05ee;hpb=662384c4996c7bc46322dc6d4f5afafa6e069d40;p=git.git diff --git a/transport.c b/transport.c index c048ef179..51814b5da 100644 --- a/transport.c +++ b/transport.c @@ -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; @@ -1026,8 +1026,8 @@ int transport_push(struct transport *transport, if (flags & TRANSPORT_PUSH_MIRROR) match_flags |= MATCH_REFS_MIRROR; - if (match_refs(local_refs, &remote_refs, - refspec_nr, refspec, match_flags)) { + if (match_push_refs(local_refs, &remote_refs, + refspec_nr, refspec, match_flags)) { return -1; }