Merge branch 'mm/describe-doc'
[gitweb.git] / t / t3010-ls-files-killed-modified.sh
index ea6a6783777a9f7f163999eb4767d7d143382e02..580e158f9918bcaf86224ce8743894da67266096 100755 (executable)
@@ -55,14 +55,11 @@ test_expect_success 'git update-index --add to add various paths.' '
        : >path9 &&
        date >path10 &&
        git update-index --add -- path0 path?/file? pathx/ju path7 path8 path9 path10 &&
-       for i in 1 2
-       do
-               git init submod$i &&
-               (
-                       cd submod$i && git commit --allow-empty -m "empty $i"
-               ) || break
-       done &&
-       git update-index --add submod[12]
+       git init submod1 &&
+       git -C submod1 commit --allow-empty -m "empty 1" &&
+       git init submod2 &&
+       git -C submod2 commit --allow-empty -m "empty 2" &&
+       git update-index --add submod[12] &&
        (
                cd submod1 &&
                git commit --allow-empty -m "empty 1 (updated)"