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

Re: Am I doing something wrong?

From
Junio C Hamano <junkio@cox.net>
Date
Dec 21, 2005, 21:13 UTC
Message-ID
<7vk6dy5f2a.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<43A9C33E.2070807@citi.umich.edu>
Chuck Lever <cel@citi.umich.edu> writes:
> maybe the Linux kernel repository needs the same treatment.  i'm getting 
> the "all zeros" commit error message when trying to pull from it.
Indeed.

Linus, sorry about bothering you, but could you do the same band-aid for now and also apply the attached to your server-info.c, please?

Show 7 quoted lines
> Junio C Hamano wrote:
>>
>> As a band-aid, I just ran this command at the server that public
>> ones mirror from:
>>
>> 	$ echo >>objects/info/packs
>>
GIT 1.0.0a needs to follow soonish X-<.

-- >8 -- [PATCH] objects/info/packs: work around bug in http-fetch.c::fetch_indices()

The code to fetch pack index files in deployed clients have a bug that causes it to ignore the pack file on the last line of objects/info/packs file, so append an empty line to work it around.

Signed-off-by: Junio C Hamano <junkio@cox.net>
---
 server-info.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
21b1aced83195af50fd8bc9a88e7734c8ee77c0e
diff --git a/server-info.c b/server-info.c
index df19e49..6089765 100644
--- a/server-info.c
+++ b/server-info.c
@@ -200,6 +200,7 @@ static void write_pack_info_file(FILE *f
 	int i;
 	for (i = 0; i < num_pack; i++)
 		fprintf(fp, "P %s\n", info[i]->p->pack_name + objdirlen + 6);
+	fputc('\n', fp);
 }
 
 static int update_info_packs(int force)
-- 
1.0.0
Previous: Chuck Lever
Message 11 of 11 in “Am I doing something wrong?”
  1. Randal L. SchwartzDec 21, 2005
  2. Junio C HamanoDec 21, 2005
  3. Randal L. SchwartzDec 21, 2005
  4. Junio C HamanoDec 21, 2005
  5. Randal L. SchwartzDec 21, 2005
  6. Junio C HamanoDec 21, 2005
  7. Peter BaumannDec 21, 2005
  8. Peter BaumannDec 21, 2005
  9. Junio C HamanoDec 21, 2005
  10. Chuck LeverDec 21, 2005
  11. Junio C HamanoDec 21, 2005

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.