From: W. Trevor King Date: Mon, 3 Dec 2012 13:07:44 +0000 (-0500) Subject: t7403: sync only works on initialized submodules X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5bbe48efe8aca2ea61f2a2cbfd7ad7b3e3574317;p=git.git t7403: 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/t7403-submodule-sync.sh b/t/t7403-submodule-sync.sh index 524d5c1b2..8f7e779fb 100755 --- a/t/t7403-submodule-sync.sh +++ b/t/t7403-submodule-sync.sh @@ -83,7 +83,7 @@ test_expect_success '"git submodule sync" should not vivify uninteresting submod git pull && git submodule sync && test -z "$(git config submodule.submodule.url)" && - git submodule sync submodule && + test_must_fail git submodule sync submodule && test -z "$(git config submodule.submodule.url)" ) '