t7400: init does not copy URL into superproject's config
authorW. Trevor King <wking@tremily.us>
Mon, 3 Dec 2012 12:15:08 +0000 (07:15 -0500)
committerW. Trevor King <wking@tremily.us>
Mon, 3 Dec 2012 14:37:05 +0000 (09:37 -0500)
But we still need to fix it for future tests, because the initial
value used during `add` was bogus (git://example.com/init.git).

Signed-off-by: W. Trevor King <wking@tremily.us>
t/t7400-submodule-basic.sh

index 53970374913eaa6f1b5921b14b5f25043974e3a4..f6c53e2cb11c499bbee80534975363ad3ae46b1b 100755 (executable)
@@ -248,14 +248,10 @@ test_expect_success 'status should initially be "missing"' '
        grep "^-$rev1" lines
 '
 
-test_expect_success 'init should register submodule url in .git/config' '
-       echo git://example.com/init.git >expect &&
-
+test_expect_success 'init should register submodule active in .git/config' '
        git submodule init &&
-       git config submodule.example.url >url &&
        git config submodule.example.url ./.subrepo &&
-
-       test_cmp expect url
+       test "$(git config submodule.example.active)" = "true"
 '
 
 test_failure_with_unknown_submodule () {