Re: GIT_WORK_TREE and GIT_DIR with git clone

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

 



Kacper Kornet <kornet@xxxxxxxxxxx> writes:

> Is there a reason why git clone does not respect GIT_DIR
> variable.

Are you sure it does "not respect GIT_DIR"?  When you are running clone
locally, like that:

> GIT_WORK_TREE=repo GIT_DIR=repo/.git git clone <path>/repo.git

you have _two_ repositories that the command operates on on your system,
the one that you are cloning _from_, and the new one that you are
creating.

Which repository does your GIT_DIR talk about?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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]