{"thread":{"id":"10063","subject":"git-cat-file \"Not a valid object name\"","startedAt":"2007-09-28T22:05:25Z","lastAt":"2007-09-28T22:15:46Z","messageCount":3,"participants":["Reza Roboubi","Linus Torvalds","Sean"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"54294","messageId":"46FD7AA5.2080007@earthdetails.com","threadId":"10063","inReplyTo":null,"subject":"git-cat-file \"Not a valid object name\"","fromName":"Reza Roboubi","fromEmail":"reza@earthdetails.com","sentAt":"2007-09-28T22:05:25Z","receivedAt":"2007-09-28T22:05:25Z","isPatch":false,"sender":{"key":"reza@earthdetails.com","avatar":null},"body":"git-cat-file -t 9b22b50f814b22224d6f838433f1e9cd36bfc2\n\nsays: \"Not a valid object name\".\n\nSo what is this thing in my .git:\n../.git/objects/92/9b22b50f814b22224d6f838433f1e9cd36bfc2\n\nThanks in advance.\n\nReza.\n"},{"id":"54295","messageId":"alpine.LFD.0.999.0709281511540.3579@woody.linux-foundation.org","threadId":"10063","inReplyTo":"46FD7AA5.2080007@earthdetails.com","subject":"Re: git-cat-file \"Not a valid object name\"","fromName":"Linus Torvalds","fromEmail":"torvalds@linux-foundation.org","sentAt":"2007-09-28T22:12:42Z","receivedAt":"2007-09-28T22:12:42Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Fri, 28 Sep 2007, Reza Roboubi wrote:\n>\n> git-cat-file -t 9b22b50f814b22224d6f838433f1e9cd36bfc2\n> \n> says: \"Not a valid object name\".\n> \n> So what is this thing in my .git:\n> ../.git/objects/92/9b22b50f814b22224d6f838433f1e9cd36bfc2\n\nThe object name for that thing is 929b22b5... You need the two first hex \ndigits too (which are used as the fan-out in the object directory).\n\n\t\tLinus\n"},{"id":"54297","messageId":"BAYC1-PASMTP02FFAE9A97F102AC11A13EAEB20@CEZ.ICE","threadId":"10063","inReplyTo":"46FD7AA5.2080007@earthdetails.com","subject":"Re: git-cat-file \"Not a valid object name\"","fromName":"Sean","fromEmail":"seanlkml@sympatico.ca","sentAt":"2007-09-28T22:15:46Z","receivedAt":"2007-09-28T22:15:46Z","isPatch":false,"sender":{"key":"seanlkml@sympatico.ca","avatar":"https://gravatar.com/avatar/f92923f54fc08c401fc59b71829d4b89e9b8087fbba45ff87c82e6a83aee02ae?d=mp&s=160"},"body":"On Fri, 28 Sep 2007 15:05:25 -0700\nReza Roboubi <reza@earthdetails.com> wrote:\n\n> git-cat-file -t 9b22b50f814b22224d6f838433f1e9cd36bfc2\n>\n>\n> says: \"Not a valid object name\".\n> \n> So what is this thing in my .git:\n> ../.git/objects/92/9b22b50f814b22224d6f838433f1e9cd36bfc2\n\nReza,\n\nThe first two digits of the sha1 appear before the final slash (/)..\nTherefore the actual object name in the case you give is\n929b22b50f814b22224d6f838433f1e9cd36bfc2.  So the following command\nshould work:\n\n$ git cat-file -t 929b22b5\n\nSean\n"}]}