From: Junio C Hamano Date: Fri, 27 Jul 2007 20:51:47 GMT Subject: Re: [PATCH 5/8] work-trees are allowed inside a git-dir Message-ID: <7vejity3h8.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Johannes Schindelin writes: > It is allowed to call > > $ git --git-dir=../ --work-tree=. bla > > when you really want to. In this case, you are both in the git directory > and in the working tree. > > The earlier handling of this situation was seriously bogus. For regular > working tree operations, it checked if inside git dir. That makes no > sense, of course, since the check should be for a work tree, and nothing > else. > > Fix that. I do not doubt this patch makes the above command line to work better, but I have to wonder how that layout is useful. Care to give a use case or two in the commit log message?