git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git pull and GIT_DIR

From
BLbill lam <cbill.lam@gmail.com>
Date
May 2, 2012, 23:21 UTC
Message-ID
<20120502232102.GB2609@debian.b2j>
In-Reply-To
<7v62ceiejp.fsf@alter.siamese.dyndns.org>

It is non-bare and /path/to is the working tree. The git pull was run inside a shell and $(pwd) is $HOME. GIT_WORK_TREE is not used. This let me remember that there were some directories/files checkout under $HOME that should be under /path/to. I might recall incorrectly, but does it mean that it need to use the form

GIT_DIR=/path/to/.git GIT_WORK_TREE=/path/to git pull url
to make it to the samething as
cd /path/to && git pull url
-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
Previous: Junio C Hamano
Message 3 of 3 in “git pull and GIT_DIR”
  1. bill lamMay 2, 2012
  2. Junio C HamanoMay 2, 2012
  3. bill lamMay 2, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.