git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 14/17] http*: add http_get_info_packs

From
Clemens Buchacher <drizzd@aon.at>
Date
May 31, 2009, 15:02 UTC
Message-ID
<20090531150256.GA27958@localhost>
In-Reply-To
<20090530015937.c402e5f2.rctay89@gmail.com>
On Sat, May 30, 2009 at 01:59:37AM +0800, Tay Ray Chuan wrote:
> --- a/http-push.c
> +++ b/http-push.c
> @@ -950,182 +950,16 @@ static int add_send_request(struct object *obj, struct remote_lock *lock)
[...]
>  static int fetch_indices(void)
>  {
[...]
Show 8 quoted lines
> -		if (results.curl_result != CURLE_OK) {
> -			strbuf_release(&buffer);
> -			free(url);
> -			if (results.http_code == 404)
> -				return 0;
> -			else
> -				return error("%s", curl_errorstr);
> -		}
[...]
> +	if (http_get_info_packs(repo->url, &repo->packs) == HTTP_OK)
> +		return 0;
> +	else
> +		return -1;

fetch_indices() used to return 0 if the pack info was missing. Now it returns an error. I also think we could get rid of repo->has_info_packs. This could easily be handled within fetch_indices().

Clemens
Previous: Tay Ray ChuanNext: Tay Ray Chuan
Message 2 of 3 in “http*: add http_get_info_packs”
  1. 14/17 http*: add http_get_info_packsTay Ray Chuan, May 29, 2009
  2. Clemens BuchacherMay 31, 2009
  3. Tay Ray ChuanJun 3, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.