From: Jack Bates Date: Wed, 27 Nov 2019 20:19:05 GMT Subject: Re: Bug? clone ignores --git-dir Message-ID: <91fa0f24-fd11-a0ff-c258-c0f480910ade@nottheoilrig.com> In-Reply-To: On 2019-11-27 5:33 a.m., Junio C Hamano wrote: > An intentional design decision (and it may be an unfortunate one by > now [*1*]) was to have the GIT_DIR (hence --git-dir) talk about the > *source side* of the clone, not the destination, e.g. Ah ha, the following does what I want, regardless of `GIT_DIR`/`GIT_WORK_TREE`: > git init repository > GIT_DIR=bogus GIT_WORK_TREE=bogus git --work-tree directory clone repository directory/.git Thank you!