# git-cat-file "Not a valid object name"

3 messages from 2007-09-28 to 2007-09-28. Participants: Reza Roboubi, Linus Torvalds, Sean.
Thread: https://gitlist.dev/t/10063

## Reza Roboubi, 2007-09-28 22:05

Subject: git-cat-file "Not a valid object name"
Message-ID: <46FD7AA5.2080007@earthdetails.com>
URL: https://gitlist.dev/e/46FD7AA5.2080007%40earthdetails.com

```
git-cat-file -t 9b22b50f814b22224d6f838433f1e9cd36bfc2

says: "Not a valid object name".

So what is this thing in my .git:
../.git/objects/92/9b22b50f814b22224d6f838433f1e9cd36bfc2

Thanks in advance.

Reza.

```

## Linus Torvalds, 2007-09-28 22:12

Subject: Re: git-cat-file "Not a valid object name"
Message-ID: <alpine.LFD.0.999.0709281511540.3579@woody.linux-foundation.org>
URL: https://gitlist.dev/e/alpine.LFD.0.999.0709281511540.3579%40woody.linux-foundation.org
In-Reply-To: <46FD7AA5.2080007@earthdetails.com>

```


On Fri, 28 Sep 2007, Reza Roboubi wrote:
>
> 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

```

## Sean, 2007-09-28 22:15

Subject: Re: git-cat-file "Not a valid object name"
Message-ID: <BAYC1-PASMTP02FFAE9A97F102AC11A13EAEB20@CEZ.ICE>
URL: https://gitlist.dev/e/BAYC1-PASMTP02FFAE9A97F102AC11A13EAEB20%40CEZ.ICE
In-Reply-To: <46FD7AA5.2080007@earthdetails.com>

```
On Fri, 28 Sep 2007 15:05:25 -0700
Reza Roboubi <reza@earthdetails.com> wrote:

> git-cat-file -t 9b22b50f814b22224d6f838433f1e9cd36bfc2
>
>
> says: "Not a valid object name".
> 
> So what is this thing in my .git:
> ../.git/objects/92/9b22b50f814b22224d6f838433f1e9cd36bfc2

Reza,

The first two digits of the sha1 appear before the final slash (/)..
Therefore the actual object name in the case you give is
929b22b50f814b22224d6f838433f1e9cd36bfc2.  So the following command
should work:

$ git cat-file -t 929b22b5

Sean

```
