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

Re: GIT_OBJECT_DIRECTORY ignored when cloning submodules

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 16, 2019, 18:03 UTC
Message-ID
<xmqq8sqoazkg.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<CAEq5TVWLxpc2a4fCch=DZfOgDWjKiu6gv0cfVHC3Wdy9581aSg@mail.gmail.com>
Robert Schmidt-Cisternas <robert@schmidt-cisternas.net> writes:
> However, when cloning a repo with submodules, the variable is cleared

GIT_OBJECT_DIRECTORY applies to the source object store, not the target object store---clearing is very much intentional, I think.

An operation like clone, fetch and push can involve two object stores (iow, you can do them between two repositories on the same machine using local transport), and allowing both sides to use the same GIT_OBJECT_DIRECTORY would probably not make much sense.

Previous: Robert Schmidt-Cisternas
Message 2 of 2 in “GIT_OBJECT_DIRECTORY ignored when cloning submodules”
  1. Robert Schmidt-CisternasSep 14, 2019
  2. Junio C HamanoSep 16, 2019

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.