From 90d0cd9b67d340e94ce98cf3154cde88bb3ffd55 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 2 Dec 2012 08:12:01 -0500 Subject: [PATCH] t7400: No longer need an explicit init to update submodules Signed-off-by: W. Trevor King --- t/t7400-submodule-basic.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh index 539703749..ee119adf5 100755 --- a/t/t7400-submodule-basic.sh +++ b/t/t7400-submodule-basic.sh @@ -383,7 +383,7 @@ test_expect_success 'apply submodule diff' ' test_cmp empty staged ' -test_expect_success 'update --init' ' +test_expect_success 'update initialization' ' mv init init2 && git config -f .gitmodules submodule.example.url "$(pwd)/init2" && git config --remove-section submodule.example && @@ -391,10 +391,7 @@ test_expect_success 'update --init' ' git submodule update init > update.out && cat update.out && - test_i18ngrep "not initialized" update.out && - test_must_fail git rev-parse --resolve-git-dir init/.git && - - git submodule update --init init && + test_i18ngrep "checked out" update.out && git rev-parse --resolve-git-dir init/.git ' -- 2.26.2