From: W. Trevor King Date: Sun, 2 Dec 2012 13:12:01 +0000 (-0500) Subject: t7400: No longer need an explicit init to update submodules X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=90d0cd9b67d340e94ce98cf3154cde88bb3ffd55;p=git.git t7400: No longer need an explicit init to update submodules Signed-off-by: W. Trevor King --- 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 '