Re: GIT_WORK_TREE and GIT_DIR with git clone
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 26, 2011, 19:40 UTC
- Message-ID
- <7vtyep3c1h.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20110326125818.GA2621@camk.edu.pl>
Kacper Kornet <kornet@camk.edu.pl> 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?