Re: Bug? clone ignores --git-dir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux