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

Re: git add / update-cache --add fails.

From
Linus Torvalds <torvalds@osdl.org>
Date
Apr 26, 2005, 00:47 UTC
Message-ID
<Pine.LNX.4.58.0504251741430.18901@ppc970.osdl.org>
In-Reply-To
<200504252252.05957.rhys@rhyshardwick.co.uk>
On Mon, 25 Apr 2005, Rhys Hardwick wrote:
Show 6 quoted lines
> 
> Just to clarify, the latest version of git to be merged with pasky is:
> 
> 4e03aae5feb2e3fd2f543796ca3d3e8aa86c02dc
> 
> I have tried rebooting
[ somebody has been using windows for too long ;]

Just do an "strace update-cache --add xxxxx", that often gives a clue. Also, "ltrace" is a wonderful tool at times.

update-cache will be unhappy if the file is unreadable, for example. But it will also be unhappy if it cannot create the sha1 hashed object file, which can happen if the permissions on the object directories are screwed up or similar.

I think these things should generally show up as a sore thumb in an strace.

		Linus
Previous: Chris WedgwoodNext: Rhys Hardwick
Message 5 of 14 in “git add / update-cache --add fails.”
  1. Rhys HardwickApr 25, 2005
  2. Rhys HardwickApr 25, 2005
  3. Rhys HardwickApr 25, 2005
  4. Chris WedgwoodApr 25, 2005
  5. Linus TorvaldsApr 26, 2005
  6. Rhys HardwickApr 26, 2005
  7. Herbert XuApr 27, 2005
  8. Ed L CashinApr 27, 2005
  9. Petr BaudisApr 27, 2005
  10. Ed L CashinApr 27, 2005
  11. Paul JacksonApr 28, 2005
  12. Petr BaudisApr 28, 2005
  13. Paul JacksonApr 28, 2005
  14. Junio C HamanoApr 26, 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.