Hi, On Sat, 24 Jan 2009, Miklos Vajna wrote: > On Fri, Jan 23, 2009 at 03:42:24AM +0100, Johannes Schindelin > <Johannes.Schindelin@xxxxxx> wrote: > > > > I am mostly worried about a failure case (connected but couldn't > > > > get the refs, or perhaps connection failed to start). If you get > > > > a NULL in such a case you may end up saying "oh you cloned a void" > > > > when you should say "nah, such a remote repository does not > > > > exist". > > > > > > Yes, this was my concern as well. > > > > From what I can see in get_remote_heads(), the native protocols would > > die(), as would rsync(). > > > > HTTP transport, however, would not die() on connection errors, from my > > cursory look. > > I'm not familiar with the HTTP code, either, but here is the call stack > I see: > > - builtin-clone calls transport_get_remote_refs() > - that will call transport->get_refs_list() > - that will call get_refs_via_curl() > - that die()s on error, does not use return error() > > Have I missed something? Not really. Only after writing my email (and just before sending) did I remember that I have Mike's HTTP cleanups applied in my Git checkout. So I was analyzing the wrong code. Thanks for analyzing the right code. Ciao, Dscho -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html