git-p4: add failing tests for case-folding p4d
[gitweb.git] / t / t4041-diff-submodule-option.sh
index ff6134147749a7104cd76dc2659be7e6da8b06e2..2d9731b52d6b880d742e4722ddcc404c59e5f1bd 100755 (executable)
@@ -528,10 +528,12 @@ test_expect_success 'diff --submodule with objects referenced by alternates' '
                sha1_before=$(git rev-parse --short HEAD)
                echo b >b &&
                git add b &&
-               git commit -m b
-               sha1_after=$(git rev-parse --short HEAD)
-               echo "Submodule sub $sha1_before..$sha1_after:
-  > b" >../expected
+               git commit -m b &&
+               sha1_after=$(git rev-parse --short HEAD) &&
+               {
+                       echo "Submodule sub $sha1_before..$sha1_after:" &&
+                       echo "  > b"
+               } >../expected
        ) &&
        (cd super &&
                (cd sub &&