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

Re: [PATCH/RFH] send-pack: fix pipeline.

From
Linus Torvalds <torvalds@osdl.org>
Date
Dec 29, 2006, 21:20 UTC
Message-ID
<Pine.LNX.4.64.0612291307520.4473@woody.osdl.org>
In-Reply-To
<7vzm96latb.fsf@assigned-by-dhcp.cox.net>
On Fri, 29 Dec 2006, Junio C Hamano wrote:
>
> I really need a sanity checking on this one.  I think I got the
> botched pipeline fixed with the patch I am replying to, but I do
> not understand the waitpid() business.  Care to enlighten me?

I think it was a beginning of a half-hearted attempt to check the exit status of the rev-list in case something went wrong.

Which we simply don't do, so if git-rev-list ends up with some problem (due to a corrupt git repo or something), it will just send a partial pack.

For some reason I thought we had fixed that by just generating the object list internally, but I guess we don't do that. That's just stupid. We should make "send-pack.c" use

	list-heads | git pack-objects --revs
	list-heads | git-rev-list --stdin | git-pack-objects

because as it is now, I think send-pack is more fragile than it needs to be.

Or maybe I'm just confused.
		Linus
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 8 in “send-pack: fix pipeline.”
  1. send-pack: fix pipeline.Junio C Hamano, Dec 29, 2006
  2. Junio C HamanoDec 29, 2006
  3. Linus TorvaldsDec 29, 2006
  4. Junio C HamanoDec 29, 2006
  5. Andy WhitcroftJan 2, 2007
  6. send pack check for failure to send revisions listAndy Whitcroft, Jan 2, 2007
  7. Junio C HamanoDec 31, 2006
  8. Linus TorvaldsDec 31, 2006

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.