From 5bbe48efe8aca2ea61f2a2cbfd7ad7b3e3574317 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 3 Dec 2012 08:07:44 -0500 Subject: [PATCH] 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 --- t/t7403-submodule-sync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)" ) ' -- 2.26.2