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

local git push bug wrt GIT_OBJECT_DIRECTORY

From
MDMatt Draisey <matt@draisey.ca>
Date
Dec 30, 2005, 06:08 UTC
Message-ID
<1135922900.2103.37.camel@della.draisey.ca>

Using git-send-pack to push to a local repository will propagate the environment variable GIT_OBJECT_DIRECTORY to git-receive-pack. git-receive-pack correctly ignores GIT_DIR (as opposed to what the documentation says) but, unfortunately, honours GIT_OBJECT_DIRECTORY.

It's not clear to me whether the correct behaviour is for git-send-pack to clean up its environment before it execs or for git-receive-pack to ignore most GIT variables.

Interposing a short script with env -i or env -uGIT_OBJECT_DIRECTORY is the easiest workaround.

Next: Junio C Hamano
Message 1 of 2 in “local git push bug wrt GIT_OBJECT_DIRECTORY”
  1. Matt DraiseyDec 30, 2005
  2. Junio C HamanoJan 6, 2006

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.