* [PATCHv3 4/5] Teach transport about the gitfile mechanism
@ 2011-10-05 13:35 Phil Hord
0 siblings, 0 replies; only message in thread
From: Phil Hord @ 2011-10-05 13:35 UTC (permalink / raw)
To: git@vger.kernel.org, Phil Hord
Cc: Junio C Hamano, Erik Faye-Lund, Nguyen Thai Ngoc Duy
The transport_get() function assumes that a regular file is a
bundle rather than a local git directory. Check if the file is
actually a gitfile. If so, do not try to process it as a
bundle, but treat it as a local repository instead.
Signed-off-by: Phil Hord <hordp@cisco.com>
diff --git a/transport.c b/transport.c
index cd49a25..2ff2d68 100644
--- a/transport.c
+++ b/transport.c
@@ -915,7 +915,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_gitfile(url)) {
struct bundle_transport_data *data = xcalloc(1, sizeof(*data));
ret->data = data;
ret->get_refs_list = get_refs_from_bundle;
--
1.7.7.505.ga09f6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-05 13:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-05 13:35 [PATCHv3 4/5] Teach transport about the gitfile mechanism Phil Hord
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.