# git read-tree ignores GIT_WORK_TREE

1 messages from 2008-04-12 to 2008-04-12. Participants: Karl Hasselström.
Thread: https://gitlist.dev/t/13077

## Karl Hasselström, 2008-04-12 14:29

Subject: git read-tree ignores GIT_WORK_TREE
Message-ID: <20080412142940.GA14214@diana.vm.bytemark.co.uk>
URL: https://gitlist.dev/e/20080412142940.GA14214%40diana.vm.bytemark.co.uk

```
It seems that git merge-recursive recently started honoring
GIT_WORK_TREE. This broke StGit, which was using both
GIT_WORK_TREE=$(git rev-parse --show-cdup) _and_ cd $(git rev-parse
--show-cdup) when execing git merge-recursive. (I'm not arguing with
this change -- it's definitely a bug in StGit to use both.)

However, I was doing the same to read-tree -u -m, and that still
works. It seems that read-tree is ignoring GIT_WORK_TREE. Is this
intentional, and if so, what's the rule about when GIT_WORK_TREE is
heeded and when it's ignored?

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle

```
