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

Re: Error writing loose object on Cygwin

From
Linus Torvalds <torvalds@osdl.org>
Date
Jul 12, 2006, 04:36 UTC
Message-ID
<Pine.LNX.4.64.0607112132540.5623@g5.osdl.org>
In-Reply-To
<7vr70r1ms5.fsf@assigned-by-dhcp.cox.net>
On Tue, 11 Jul 2006, Junio C Hamano wrote:
Show 6 quoted lines
> Shawn Pearce <spearce@spearce.org> writes:
> 
> > Has anyone else seen this type of behavior before?  Any suggestions
> > on debugging this issue?
> 
> I would suggest raising this (politely) to Cygwin people.

Well, since it apparently works with W2000, and breaks with XP, I suspect it's actually Windows that just returns the wrong error code.

It's entirely possible that we should just make that whole
	if (ret == ENOENT)

go away. Yes, it's the right error code if a subdirectory is missing, and yes, POSIX requires it, and yes, WXP is probably just a horrible piece of sh*t, but on the other hand, I don't think git really has any serious reason to even care.

So we might as well say that if the link() fails for _any_ reason, we'll try to see if doing the mkdir() and re-trying the link helps.

		Linus
Previous: Junio C HamanoNext: Shawn Pearce
Message 3 of 9 in “Error writing loose object on Cygwin”
  1. Shawn PearceJul 12, 2006
  2. Junio C HamanoJul 12, 2006
  3. Linus TorvaldsJul 12, 2006
  4. Shawn PearceJul 12, 2006
  5. Junio C HamanoJul 13, 2006
  6. Christopher FaylorJul 13, 2006
  7. Shawn PearceJul 14, 2006
  8. Christopher FaylorJul 14, 2006
  9. Linus TorvaldsJul 14, 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.