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

Re: git-cat-file "Not a valid object name"

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Sep 28, 2007, 22:12 UTC
Message-ID
<alpine.LFD.0.999.0709281511540.3579@woody.linux-foundation.org>
In-Reply-To
<46FD7AA5.2080007@earthdetails.com>
On Fri, 28 Sep 2007, Reza Roboubi wrote:
Show 7 quoted lines
>
> git-cat-file -t 9b22b50f814b22224d6f838433f1e9cd36bfc2
> 
> says: "Not a valid object name".
> 
> So what is this thing in my .git:
> ../.git/objects/92/9b22b50f814b22224d6f838433f1e9cd36bfc2

The object name for that thing is 929b22b5... You need the two first hex digits too (which are used as the fan-out in the object directory).

		Linus
Previous: Reza RoboubiNext: Sean
Message 2 of 3 in “git-cat-file "Not a valid object name"”
  1. Reza RoboubiSep 28, 2007
  2. Linus TorvaldsSep 28, 2007
  3. SeanSep 28, 2007

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.