From: Fredrik Gustafsson Date: Fri, 22 Jul 2011 19:02:23 GMT Subject: Re: [RFC PATCH] Move git-dir for submodules Message-ID: <20110722190223.GA27076@kolya> In-Reply-To: <7vhb6f1ipp.fsf@alter.siamese.dyndns.org> Thanks for the review. I'll send an updated series soon. On Thu, Jul 21, 2011 at 01:28:50PM -0700, Junio C Hamano wrote: > Is it really necessary to have an ugly > loop to make things relative, though? The path must be relative to allow the superproject to be moved around. > I wonder if we want a new option to "git rev-parse" so that we can say > > git rev-parse --is-well-formed-git-dir init/.git > > to perform these checks without exposing the implimentation detail. How about using (cd ; git rev-parse --verify HEAD" >/dev/null) instead? Med vänliga hälsningar Fredrik Gustafsson