t7406: explicitly update deeper/submodule
authorW. Trevor King <wking@tremily.us>
Sun, 2 Dec 2012 17:52:12 +0000 (12:52 -0500)
committerW. Trevor King <wking@tremily.us>
Sun, 2 Dec 2012 18:22:28 +0000 (13:22 -0500)
Without a way to turn submodules on and off, a bare update tries to
update every submodule.  However, the other submodule changes haven't
been pushed back to the upstream submodules, so a full update fails.

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

index 15426530e49ef2e42cda2528f4a72a784eb40cd9..24890c1ace0515cb1c3f3f611956ab213c7150ce 100755 (executable)
@@ -546,7 +546,7 @@ test_expect_success 'submodule update places git-dir in superprojects git-dir' '
        git clone super super2 &&
        (cd super2 &&
         git submodule init deeper/submodule &&
-        git submodule update &&
+        git submodule update deeper/submodule &&
         (cd deeper/submodule &&
          git log > ../../expected
         ) &&