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

GIT_OBJECT_DIRECTORY ignored when cloning submodules

From
RSRobert Schmidt-Cisternas <robert@schmidt-cisternas.net>
Date
Sep 14, 2019, 16:07 UTC
Message-ID
<CAEq5TVWLxpc2a4fCch=DZfOgDWjKiu6gv0cfVHC3Wdy9581aSg@mail.gmail.com>
Hi,

In the pursuit of optimizing meta-repo workflows, I wanted to use GIT_OBJECT_DIRECTORY to specify a single objects directory used by all repos and submodules on a workstation.

The idea being that many metarepos will contain similar sets of submodules, and objects can be reused, thus potentially saving massive amounts of disk space and network traffic.

However, when cloning a repo with submodules, the variable is cleared when the submodules are cloned recursively.

Is this a bug, or intentional?

Thanks, Robert Schmidt

Next: Junio C Hamano
Message 1 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.