Re: [PATCH] checkout-index needs a working tree
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Aug 10, 2007, 01:11 UTC
- Message-ID
- <Pine.LNX.4.64.0708100210280.21857@racer.site>
- In-Reply-To
- <7vd4xww6mr.fsf@assigned-by-dhcp.cox.net>
Hi,
On Thu, 9 Aug 2007, Junio C Hamano wrote:
Show 17 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> 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