git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] work around "transport-take-over" hack
@ 2013-08-07 23:30 Junio C Hamano
  2013-08-07 23:30 ` [PATCH 1/5] t5802: add test for connect helper Junio C Hamano
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Junio C Hamano @ 2013-08-07 23:30 UTC (permalink / raw)
  To: git; +Cc: Shawn Pearce

"git fetch" sometimes needs to make a real request to the transport
after a single "fetch_refs" request, in order to follow tags that
the other end should have sent as part of the primary transfer with
"follow-tags" request.

However, a transport that defines "connect" has a gross hack that
destroys its internal state to render it unusable after processing a
single request, breaking this.

This is my attempt to work it around.  I am not too proud of it, but
after trying two other approaches to fix it closer to the real cause
(i.e. the implementation of Git-aware transport helper) and seeing
that both of them ended up being even less appealing and not worth
posting, I think this is probably the best fix to the issue.

Junio C Hamano (5):
  t5802: add test for connect helper
  fetch: rename file-scope global "transport" to "gtransport"
  fetch: refactor code that prepares a transport
  fetch: refactor code that fetches leftover tags
  fetch: work around "transport-take-over" hack

 builtin/fetch.c           | 85 ++++++++++++++++++++++++++++++-----------------
 t/t5802-connect-helper.sh | 72 +++++++++++++++++++++++++++++++++++++++
 transport.c               |  2 ++
 transport.h               |  6 ++++
 4 files changed, 134 insertions(+), 31 deletions(-)
 create mode 100755 t/t5802-connect-helper.sh

-- 
1.8.4-rc1-210-gf6d87e2

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-08-07 23:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-07 23:30 [PATCH 0/5] work around "transport-take-over" hack Junio C Hamano
2013-08-07 23:30 ` [PATCH 1/5] t5802: add test for connect helper Junio C Hamano
2013-08-07 23:30 ` [PATCH 2/5] fetch: rename file-scope global "transport" to "gtransport" Junio C Hamano
2013-08-07 23:30 ` [PATCH 3/5] fetch: refactor code that prepares a transport Junio C Hamano
2013-08-07 23:30 ` [PATCH 4/5] fetch: refactor code that fetches leftover tags Junio C Hamano
2013-08-07 23:30 ` [PATCH 5/5] fetch: work around "transport-take-over" hack Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).