]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t1512-rev-parse-disambiguation.sh
Merge branch 'ab/ambiguous-object-name'
[thirdparty/git.git] / t / t1512-rev-parse-disambiguation.sh
index be687aebb260ae6f1d565cba0eed0e0436f6542b..98cefe3b7039fe726148e47fdf81b1f9fb454e15 100755 (executable)
@@ -115,10 +115,7 @@ fi
 test_expect_success 'blob and tree' '
        test_tick &&
        (
-               for i in 0 1 2 3 4 5 6 7 8 9
-               do
-                       echo $i
-               done &&
+               test_write_lines 0 1 2 3 4 5 6 7 8 9 &&
                echo &&
                echo b1rwzyc3
        ) >a0blgqsjc &&
@@ -285,10 +282,7 @@ test_expect_success 'more history' '
        git checkout v1.0.0^0 &&
        git mv a0blgqsjc f5518nwu &&
 
-       for i in h62xsjeu j08bekfvt kg7xflhm
-       do
-               echo $i
-       done >>f5518nwu &&
+       test_write_lines h62xsjeu j08bekfvt kg7xflhm >>f5518nwu &&
        git add f5518nwu &&
 
        test_tick &&
@@ -468,7 +462,7 @@ test_expect_success 'ambiguous commits are printed by type first, then hash orde
        do
                grep $type objects >$type.objects &&
                sort $type.objects >$type.objects.sorted &&
-               test_cmp $type.objects.sorted $type.objects
+               test_cmp $type.objects.sorted $type.objects || return 1
        done
 '