GIT_WORK_TREE and GIT_DIR with git clone

From: Kacper Kornet <hidden>
Date: 2016-06-15 22:50:54

Is there a reason why git clone does not respect GIT_DIR
variable. I have found it confusing that:

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

is not equivalent to

git clone <path>/repo.git

-- 
  Kacper
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help