From: Junio C Hamano Date: Wed, 02 May 2012 19:11:22 GMT Subject: Re: git pull and GIT_DIR Message-ID: <7v62ceiejp.fsf@alter.siamese.dyndns.org> In-Reply-To: <20120502142536.GA2609@debian.b2j> bill lam writes: > It appeared that > > a) > cd /path/to && git pull git/https://.... > > will fetch and checkout latest changes to working tree. This is as > expected. On the contrary > > b) > GIT_DIR=/path/to/.git git pull git/https://.... > > will ... -ETOOLITTLEINFO. When you do b) - is /path/to the working tree for /path/to/.git? - where is your $(pwd)? - if your $(pwd) is different from /path/to, how are you telling git where the working tree is? are you using GIT_WORK_TREE or something?