From: W. Trevor King Date: Mon, 3 Dec 2012 13:10:15 +0000 (-0500) Subject: t7406: init does not copy URL into superproject's config X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5450a331ea87427239fc7c8bb228bc43b0107d34;p=git.git t7406: init does not copy URL into superproject's config These values can now be read directly from .gitmodules (via get_submodule_config), so checking for explicit copying no longer makes sense. Later tests require the changed .gitmodules though, so make sure to set them up when they're needed. Signed-off-by: W. Trevor King --- diff --git a/t/t7406-submodule-update.sh b/t/t7406-submodule-update.sh index 15426530e..77d559030 100755 --- a/t/t7406-submodule-update.sh +++ b/t/t7406-submodule-update.sh @@ -248,22 +248,6 @@ test_expect_success 'submodule update - checkout in .git/config' ' ) ' -test_expect_success 'submodule init picks up rebase' ' - (cd super && - git config -f .gitmodules submodule.rebasing.update rebase && - git submodule init rebasing && - test "rebase" = "$(git config submodule.rebasing.update)" - ) -' - -test_expect_success 'submodule init picks up merge' ' - (cd super && - git config -f .gitmodules submodule.merging.update merge && - git submodule init merging && - test "merge" = "$(git config submodule.merging.update)" - ) -' - test_expect_success 'submodule update --merge - ignores --merge for new submodules' ' (cd super && rm -rf submodule && @@ -316,14 +300,6 @@ test_expect_success 'submodule update ignores update=rebase config for new submo ) ' -test_expect_success 'submodule init picks up update=none' ' - (cd super && - git config -f .gitmodules submodule.none.update none && - git submodule init none && - test "none" = "$(git config submodule.none.update)" - ) -' - test_expect_success 'submodule update - update=none in .git/config' ' (cd super && git config submodule.submodule.update none && @@ -361,6 +337,9 @@ test_expect_success 'submodule update - update=none in .git/config but --checkou test_expect_success 'submodule update --init skips submodule with update=none' ' (cd super && + git config -f .gitmodules submodule.rebasing.update rebase && + git config -f .gitmodules submodule.merging.update merge && + git config -f .gitmodules submodule.none.update none && git add .gitmodules && git commit -m ".gitmodules" ) &&