From: W. Trevor King Date: Mon, 3 Dec 2012 12:57:40 +0000 (-0500) Subject: t7400: sync only works on initialized submodules X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=edf577af03bd01d3452ab97d7a80958427edff64;p=git.git t7400: sync only works on initialized submodules 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 --- diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh index 1a9ac0783..97be72fac 100755 --- a/t/t7400-submodule-basic.sh +++ b/t/t7400-submodule-basic.sh @@ -478,6 +478,7 @@ test_expect_success 'use superproject as upstream when path is relative and no u 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" )