From: Jeff King Date: Fri, 27 Jan 2012 05:57:22 GMT Subject: Re: [PATCH 4/4] config: allow including config from repository blobs Message-ID: <20120127055722.GD23633@sigill.intra.peff.net> In-Reply-To: On Fri, Jan 27, 2012 at 10:47:29AM +0700, Nguyen Thai Ngoc Duy wrote: > > What happens if a ref cannot be resolved, for example due to repository > > corruption? Does git just emit an error and then carries on, or does it > > always die? Can I run at least git-fsck in such a case? > > Moreover, if I specify sha-1 in the config (it's discouraged but not > forbidden from the code), can git-prune remove the blob? Yes. I don't think we want to get into connectivity guarantees for config (because they can be quite complex, and involve files totally outside the repo). I think it's OK for the user to be responsible for either using a ref, or making sure that a bare sha1 they point to is reachable from a ref. -Peff