From: W. Trevor King Date: Sun, 2 Dec 2012 17:21:07 +0000 (-0500) Subject: t7403: Use --no-local to avoid populating .git/config X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fed6847af4bfcbdc6c119283d7fe83264de34946;p=git.git 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 --- 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)" ) '