Re: Bug? clone ignores --git-dir
- From
- Jack Bates <bk874k@nottheoilrig.com>
- Date
- Nov 27, 2019, 20:19 UTC
- Message-ID
- <91fa0f24-fd11-a0ff-c258-c0f480910ade@nottheoilrig.com>
- In-Reply-To
- <xmqqh82pv6qi.fsf@gitster-ct.c.googlers.com>
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!