From edf577af03bd01d3452ab97d7a80958427edff64 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 3 Dec 2012 07:57:40 -0500 Subject: [PATCH] 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 --- t/t7400-submodule-basic.sh | 1 + 1 file changed, 1 insertion(+) 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" ) -- 2.26.2