aboutsummaryrefslogtreecommitdiffstats
path: root/t/t7418-submodule-sparse-gitmodules.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-11-23 11:22:22 +0900
committerJunio C Hamano <gitster@pobox.com>2022-11-23 11:22:22 +0900
commit1107a3963b566e41d25ee1a7e152db9b08a8fc6e (patch)
tree3fc2408ca15f949e76ab6e82e3d7a6c2d2dcf22e /t/t7418-submodule-sparse-gitmodules.sh
parentThe thirteenth batch (diff)
parentsubmodule--helper: use OPT_SUBCOMMAND() API (diff)
downloadgit-1107a3963b566e41d25ee1a7e152db9b08a8fc6e.tar.gz
git-1107a3963b566e41d25ee1a7e152db9b08a8fc6e.zip
Merge branch 'ab/submodule-helper-prep-only'
Preparation to remove git-submodule.sh and replace it with a builtin. * ab/submodule-helper-prep-only: submodule--helper: use OPT_SUBCOMMAND() API submodule--helper: drop "update --prefix <pfx>" for "-C <pfx> update" submodule--helper: remove --prefix from "absorbgitdirs" submodule API & "absorbgitdirs": remove "----recursive" option submodule.c: refactor recursive block out of absorb function submodule tests: test for a "foreach" blind-spot submodule--helper: fix a memory leak in "status" submodule tests: add tests for top-level flag output submodule--helper: move "config" to a test-tool
Diffstat (limited to 't/t7418-submodule-sparse-gitmodules.sh')
-rwxr-xr-xt/t7418-submodule-sparse-gitmodules.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t7418-submodule-sparse-gitmodules.sh b/t/t7418-submodule-sparse-gitmodules.sh
index d5874200fd..dde11ecce8 100755
--- a/t/t7418-submodule-sparse-gitmodules.sh
+++ b/t/t7418-submodule-sparse-gitmodules.sh
@@ -50,12 +50,12 @@ test_expect_success 'sparse checkout setup which hides .gitmodules' '
test_expect_success 'reading gitmodules config file when it is not checked out' '
echo "../submodule" >expect &&
- git -C super submodule--helper config submodule.submodule.url >actual &&
+ test-tool -C super submodule config-list submodule.submodule.url >actual &&
test_cmp expect actual
'
test_expect_success 'not writing gitmodules config file when it is not checked out' '
- test_must_fail git -C super submodule--helper config submodule.submodule.url newurl &&
+ test_must_fail test-tool -C super submodule config-set submodule.submodule.url newurl &&
test_path_is_missing super/.gitmodules
'