git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* GIT_OBJECT_DIRECTORY ignored when cloning submodules
@ 2019-09-14 16:07 Robert Schmidt-Cisternas
  2019-09-16 18:03 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Schmidt-Cisternas @ 2019-09-14 16:07 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GIT_OBJECT_DIRECTORY ignored when cloning submodules
  2019-09-14 16:07 GIT_OBJECT_DIRECTORY ignored when cloning submodules Robert Schmidt-Cisternas
@ 2019-09-16 18:03 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2019-09-16 18:03 UTC (permalink / raw)
  To: Robert Schmidt-Cisternas; +Cc: git

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-16 18:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-14 16:07 GIT_OBJECT_DIRECTORY ignored when cloning submodules Robert Schmidt-Cisternas
2019-09-16 18:03 ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).