From fed6847af4bfcbdc6c119283d7fe83264de34946 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 2 Dec 2012 12:21:07 -0500 Subject: [PATCH] t7403: Use --no-local to avoid populating .git/config Without a way to turn submodules on and off, all submodules have their URLs copied into the local config by default. Signed-off-by: W. Trevor King --- t/t7403-submodule-sync.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/t7403-submodule-sync.sh b/t/t7403-submodule-sync.sh index 524d5c1b2..bae090368 100755 --- a/t/t7403-submodule-sync.sh +++ b/t/t7403-submodule-sync.sh @@ -78,12 +78,12 @@ test_expect_success '"git submodule sync" should update known submodule URLs' ' ) ' -test_expect_success '"git submodule sync" should not vivify uninteresting submodule' ' +test_expect_success '"git submodule sync --no-local" should not vivify uninteresting submodule' ' (cd top-only-clone && git pull && - git submodule sync && + git submodule sync --no-local && test -z "$(git config submodule.submodule.url)" && - git submodule sync submodule && + git submodule sync --no-local submodule && test -z "$(git config submodule.submodule.url)" ) ' -- 2.26.2