From: Johannes Schindelin Date: Fri, 10 Aug 2007 01:11:11 GMT Subject: Re: [PATCH] checkout-index needs a working tree Message-ID: In-Reply-To: <7vd4xww6mr.fsf@assigned-by-dhcp.cox.net> Hi, On Thu, 9 Aug 2007, Junio C Hamano wrote: > Johannes Schindelin writes: > > > That is _completely_ expected. If it is a bare repository, you can _only_ > > override that check by GIT_WORK_TREE or --work-tree. > > > > But I have to wonder: if you want to use git checkout-index, which is a > > work-tree operation, why did you mark it as bare to begin with? > > I do not necessarily think --prefix=untar/it/here/ is a work > tree operation. > > Perhaps we probably are better off if we add something that says > specifying GIT_DIR alone means you are at the top of work tree > (to resurrect the traditional behaviour), to alleviate fallouts > like this and the other cvsserver one? If one does not like > that traditional behaviour, the new GIT_WORK_TREE support can > be used override it. I think I sent a patch for that, but was negative about it, even if I promised not to question your decision. Ciao, Dscho