submodule: don't add submodule as odb for push
commit142e9f4432199cec5de418d74b37872d8330f696
authorStefan Beller <sbeller@google.com>
Sat, 15 Dec 2018 00:09:38 +0000 (14 16:09 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 28 Dec 2018 18:06:33 +0000 (28 10:06 -0800)
treefe2e890d4b0486f469c330fe7ad7aa1035310f9e
parent605f0ec1350477e53fd1a7774bad977257bf10d5
submodule: don't add submodule as odb for push

In push_submodule(), because we do not actually need access to objects
in the submodule, do not invoke add_submodule_odb().
(for_each_remote_ref_submodule() does not require access to those
objects, and the actual push is done by spawning another process,
which handles object access by itself.)

This code of push_submodule() is exercised in t5531 and continues
to work, showing that the submodule odbc is not needed.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c