summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorDavid Aguilar <davvid@gmail.com>2010-08-18 15:58:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-08-18 20:54:30 (GMT)
commit0b9dca434f5d9208a26f47f7ec11453f1cfdfae8 (patch)
treee6e5cb8698b55956f6a99e9b8ba8902ed697b599 /t
parent64fdc08dac6694d1e754580e7acb82dfa4988bb9 (diff)
downloadgit-0b9dca434f5d9208a26f47f7ec11453f1cfdfae8.zip
git-0b9dca434f5d9208a26f47f7ec11453f1cfdfae8.tar.gz
git-0b9dca434f5d9208a26f47f7ec11453f1cfdfae8.tar.bz2
submodule sync: Update "submodule.<name>.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 <davvid@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t7403-submodule-sync.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/t7403-submodule-sync.sh b/t/t7403-submodule-sync.sh
index 7538756..3033c4a 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)"
)
'