Re: contrib/workdir/git-new-workdir broken in 1.7.10 after introducing gitfiles
- From
Jens Lehmann <jens.lehmann@web.de>
- Date
- Apr 22, 2012, 18:32 UTC
- Message-ID
- <4F944EB2.6040105@web.de>
- In-Reply-To
- <xmqqy5poxtsc.fsf@junio.mtv.corp.google.com>
Am 22.04.2012 06:41, schrieb Junio C Hamano:
Show 18 quoted lines
> Junio C Hamano <gitster@pobox.com> writes: > >> As you analyzed correctly, core.worktree lets a GIT_DIR to declare that >> there is a single working tree associated with it. It fundamentally is >> incompatible with new-workdir, which is a hack to let more than one >> working tree associated with a single GIT_DIR. >> >> I however do not think a simplistic "unset core.worktree" is a good >> suggestion, though, as we do not know why the original repository has >> that variable set pointing at somewhere. Blindly removing it will break >> the use of the original repository. If somebody _really_ wants to use >> new-workdir for whatever reason in such a setting, I would imagine that >> doing something like this: >> ... >> may work. > > I am too lazy to try it out myself, but a hack something along the line > of the attached patch _might_ turn out to work well.
A quick test worked just fine. Looks like you fixed git-new-workdir to be usable with the new gitfile submodules ;-)