Signed-off-by: W. Trevor King <wking@tremily.us>
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 &&
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
'