From 0b9dca434f5d9208a26f47f7ec11453f1cfdfae8 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Wed, 18 Aug 2010 08:58:33 -0700 Subject: submodule sync: Update "submodule..url" When "git submodule sync" synchronizes the repository URLs it only updates submodules' .git/config. However, the old URLs still exist in the super-project's .git/config. Update the super-project's configuration so that commands such as "git submodule update" use the URLs from .gitmodules. Signed-off-by: David Aguilar Signed-off-by: Junio C Hamano --- t/t7403-submodule-sync.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 't') diff --git a/t/t7403-submodule-sync.sh b/t/t7403-submodule-sync.sh index 7538756487..3033c4a22d 100755 --- a/t/t7403-submodule-sync.sh +++ b/t/t7403-submodule-sync.sh @@ -58,6 +58,9 @@ test_expect_success '"git submodule sync" should update submodule URLs' ' (cd super-clone/submodule && git checkout master && git pull + ) && + (cd super-clone && + test -d "$(git config submodule.submodule.url)" ) ' -- cgit v1.2.3