Robert Schmidt-Cisternas <rob...@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.

Reply via email to