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