Git development
 help / color / mirror / Atom feed
* git-cat-file "Not a valid object name"
@ 2007-09-28 22:05 Reza Roboubi
  2007-09-28 22:12 ` Linus Torvalds
  2007-09-28 22:15 ` Sean
  0 siblings, 2 replies; 3+ messages in thread
From: Reza Roboubi @ 2007-09-28 22:05 UTC (permalink / raw)
  To: git

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git-cat-file "Not a valid object name"
  2007-09-28 22:05 git-cat-file "Not a valid object name" Reza Roboubi
@ 2007-09-28 22:12 ` Linus Torvalds
  2007-09-28 22:15 ` Sean
  1 sibling, 0 replies; 3+ messages in thread
From: Linus Torvalds @ 2007-09-28 22:12 UTC (permalink / raw)
  To: Reza Roboubi; +Cc: git



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git-cat-file "Not a valid object name"
  2007-09-28 22:05 git-cat-file "Not a valid object name" Reza Roboubi
  2007-09-28 22:12 ` Linus Torvalds
@ 2007-09-28 22:15 ` Sean
  1 sibling, 0 replies; 3+ messages in thread
From: Sean @ 2007-09-28 22:15 UTC (permalink / raw)
  To: Reza Roboubi; +Cc: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-28 22:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-28 22:05 git-cat-file "Not a valid object name" Reza Roboubi
2007-09-28 22:12 ` Linus Torvalds
2007-09-28 22:15 ` Sean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox