From: Linus Torvalds Date: Sat, 16 Dec 2006 01:49:33 GMT Subject: Re: [RFC] Submodules in GIT Message-ID: In-Reply-To: On Sat, 16 Dec 2006, Torgil Svensson wrote: > > 100644 blob README > 100644 blob REPORTING-BUGS > 100644 link > 040000 tree arch > 040000 tree block > 040000 link That 040000 needs to be something else. In order for something like a git-fsck-objects to know that it's a link, it needs to be marked as such. In git, we never just randomly open an object by SHA1, and then figure out its type. We always open things by explicitly knowing both the type and the SHA1, and if the object we find has the wrong type, that's a consistency error in the database (or the user).