From: W. Trevor King Date: Sun, 2 Dec 2012 15:25:01 +0000 (-0500) Subject: t7400: Test submodule's configured remote URL X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=375b7761741f4a42eeb3ff3bdef192abec24bb59;p=git.git t7400: Test submodule's configured remote URL Note that relative repository arguments passed to $ git submodule add [] are expanded relative to the superproject's remote URL, not relative to the current working directory, which is why /foo/ shows up in the configured URLs. Signed-off-by: W. Trevor King --- diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh index ee119adf5..0b9a2612e 100755 --- a/t/t7400-submodule-basic.sh +++ b/t/t7400-submodule-basic.sh @@ -661,7 +661,8 @@ test_expect_success '../bar/a/b/c works with relative local path - ../foo/bar.gi git config remote.origin.url ../foo/bar.git && git submodule add ../bar/a/b/c ./a/b/c && git submodule init && - test "$(git config submodule.a/b/c.url)" = ../foo/bar/a/b/c + test "$(git config submodule.a/b/c.url)" = ../foo/bar/a/b/c && + test "$(cd a/b/c && git config remote.origin.url)" = ../../../../foo/bar/a/b/c ) '