HACK work around missing index entry for existing empty submodules wtk/remove-submodule-init-v0.5
authorW. Trevor King <wking@tremily.us>
Sun, 2 Dec 2012 15:25:34 +0000 (10:25 -0500)
committerW. Trevor King <wking@tremily.us>
Sun, 2 Dec 2012 18:22:28 +0000 (13:22 -0500)
t/t7400-submodule-basic.sh

index 0b9a2612e1d16c1038aae48e43072df0e5f14744..26b179f57d6ccb5fa76f8ed117c30e2f7a6bf79f 100755 (executable)
@@ -657,7 +657,13 @@ test_expect_success '../bar/a/b/c works with relative local path - ../foo/bar.gi
                cp pristine-.git-config .git/config &&
                cp pristine-.gitmodules .gitmodules &&
                mkdir -p a/b/c &&
-               (cd a/b/c; git init) &&
+               (cd a/b/c &&
+                git init &&
+# HACK! work around no index changes for commit-less submodule addition
+                touch file &&
+                git add file &&
+                git commit -m "add file"
+               ) &&
                git config remote.origin.url ../foo/bar.git &&
                git submodule add ../bar/a/b/c ./a/b/c &&
                git submodule init &&