]> git.ipfire.org Git - thirdparty/git.git/commit
submodule: pass repo to check_has_commit()
authorJonathan Tan <jonathantanmy@google.com>
Fri, 8 Oct 2021 21:08:19 +0000 (14:08 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Oct 2021 22:06:06 +0000 (15:06 -0700)
commit13a2f620b27c0fa29de026de5d74a2434c565ece
tree1e35f6c3af73eae9296ebec5d671ab2a8eed8f3c
parenteef71904ff68e90f2db37aa9e25fe82c3fccf2a0
submodule: pass repo to check_has_commit()

Pass the repo explicitly when calling check_has_commit() to avoid
relying on add_submodule_odb(). With this commit and the parent commit,
the last remaining tests no longer rely on add_submodule_odb(), so mark
these tests accordingly.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c
t/t5526-fetch-submodules.sh
t/t5531-deep-submodule-push.sh
t/t5545-push-options.sh
t/t5572-pull-submodule.sh
t/t7418-submodule-sparse-gitmodules.sh