So initialize the submodule before syncing. It's possible that `sync`
(and other submodule commands) should grow an --init option in the
style of `update`, but I've avoided that for now.
Signed-off-by: W. Trevor King <wking@tremily.us>
cd addtest &&
git submodule add ../repo relative &&
test "$(git config -f .gitmodules submodule.relative.url)" = ../repo &&
+ git submodule init relative &&
git submodule sync relative &&
test "$(git config submodule.relative.url)" = "$submodurl/repo"
)