Re: git pull and GIT_DIR
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 2, 2012, 19:11 UTC
- Message-ID
- <7v62ceiejp.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20120502142536.GA2609@debian.b2j>
bill lam <cbill.lam@gmail.com> writes:
Show 12 quoted lines
> 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?