Subject: Re: Errors cloning over http -- git-clone and cg-clone fail to fetch a reachable object...

From: Nick Hengeveld <[email-masked]>
Date: Mon, 7 Nov 2005 09:14:47 -0800

On Mon, Nov 07, 2005 at 05:50:02PM +1300, Martin Langhoff wrote:

> > Does it always error out on the same pack file?
> 
> Yes.

You might try this to see exactly what request/response headers
curl thinks are passing back and forth.

diff --git a/http-fetch.c b/http-fetch.c
index ea8af1b..11d4dca 100644
--- a/http-fetch.c
+++ b/http-fetch.c
@@ -325,6 +325,7 @@ static struct active_request_slot *get_a
 	curl_easy_setopt(slot->curl, CURLOPT_HTTPHEADER, pragma_header);
 	curl_easy_setopt(slot->curl, CURLOPT_HTTPHEADER, no_range_header);
 	curl_easy_setopt(slot->curl, CURLOPT_ERRORBUFFER, curl_errorstr);
+	curl_easy_setopt(slot->curl, CURLOPT_VERBOSE, 1);
 
 	return slot;
 }

-- 
For a successful technology, reality must take precedence over public
relations, for nature cannot be fooled.