From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.176.0/21 X-Spam-Status: No, score=-3.5 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MSGID_FROM_MTA_HEADER,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 From: Linus Torvalds Subject: Re: [RFC] Submodules in GIT Date: Fri, 15 Dec 2006 17:49:33 -0800 (PST) Message-ID: References: <20061130170625.GH18810@admingilde.org> <200612150007.44331.Josef.Weidendorfer@gmx.de> <200612152242.50472.Josef.Weidendorfer@gmx.de> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII NNTP-Posting-Date: Sat, 16 Dec 2006 01:50:41 +0000 (UTC) Cc: Josef Weidendorfer , "R. Steve McKown" , git@vger.kernel.org Return-path: Envelope-to: gcvg-git@gmane.org In-Reply-To: X-MIMEDefang-Filter: osdl$Revision: 1.163 $ X-Scanned-By: MIMEDefang 2.36 Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Received: from vger.kernel.org ([209.132.176.167]) by dough.gmane.org with esmtp (Exim 4.50) id 1GvOh5-0005Ko-Uh for gcvg-git@gmane.org; Sat, 16 Dec 2006 02:50:32 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030340AbWLPBuP (ORCPT ); Fri, 15 Dec 2006 20:50:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753219AbWLPBuP (ORCPT ); Fri, 15 Dec 2006 20:50:15 -0500 Received: from smtp.osdl.org ([65.172.181.25]:35343 "EHLO smtp.osdl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753217AbWLPBuN (ORCPT ); Fri, 15 Dec 2006 20:50:13 -0500 Received: from shell0.pdx.osdl.net (fw.osdl.org [65.172.181.6]) by smtp.osdl.org (8.12.8/8.12.8) with ESMTP id kBG1o7ID019131 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 15 Dec 2006 17:50:07 -0800 Received: from localhost (shell0.pdx.osdl.net [10.9.0.31]) by shell0.pdx.osdl.net (8.13.1/8.11.6) with ESMTP id kBG1o6NX008559; Fri, 15 Dec 2006 17:50:06 -0800 To: Torgil Svensson Sender: git-owner@vger.kernel.org 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).