{"thread":{"id":"13077","subject":"git read-tree ignores GIT_WORK_TREE","startedAt":"2008-04-12T14:29:40Z","lastAt":"2008-04-12T14:29:40Z","messageCount":1,"participants":["Karl Hasselström"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"74201","messageId":"20080412142940.GA14214@diana.vm.bytemark.co.uk","threadId":"13077","inReplyTo":null,"subject":"git read-tree ignores GIT_WORK_TREE","fromName":"Karl Hasselström","fromEmail":"kha@treskal.com","sentAt":"2008-04-12T14:29:40Z","receivedAt":"2008-04-12T14:29:40Z","isPatch":false,"sender":{"key":"kha@treskal.com","avatar":"https://gravatar.com/avatar/f0120c734b5279b345075a28521e1ac66acb20c9913ffe9bf6ae97e53f7f3f13?d=mp&s=160"},"body":"It seems that git merge-recursive recently started honoring\nGIT_WORK_TREE. This broke StGit, which was using both\nGIT_WORK_TREE=$(git rev-parse --show-cdup) _and_ cd $(git rev-parse\n--show-cdup) when execing git merge-recursive. (I'm not arguing with\nthis change -- it's definitely a bug in StGit to use both.)\n\nHowever, I was doing the same to read-tree -u -m, and that still\nworks. It seems that read-tree is ignoring GIT_WORK_TREE. Is this\nintentional, and if so, what's the rule about when GIT_WORK_TREE is\nheeded and when it's ignored?\n\n-- \nKarl Hasselström, kha@treskal.com\n      www.treskal.com/kalle\n"}]}