t5526: create superproject commits with test helper
commitd1d1572e75edfa901fd6ab836402f57ba2da27b4
authorGlen Choo <chooglen@google.com>
Tue, 8 Mar 2022 00:14:26 +0000 (7 16:14 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Mar 2022 00:51:03 +0000 (7 16:51 -0800)
treef19e45033a0ce4bc74e8c21b6a09ff8487f6f669
parent6e94bd64f334b91fab0f06b44ad00fc34a068a8c
t5526: create superproject commits with test helper

A few tests in t5526 use this pattern as part of their setup:

1. Create new commits in the upstream submodules (using
   add_upstream_commit()).
2. In the upstream superprojects, add the new submodule commits from the
   previous step.

A future commit will add more tests with this pattern, so reduce the
verbosity of present and future tests by introducing a test helper that
creates superproject commits. Since we now have two helpers that add
upstream commits, rename add_upstream_commit() to
add_submodule_commits().

Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5526-fetch-submodules.sh