]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t7501-commit-basic-functionality.sh
Merge branch 'en/fetch-negotiation-default-fix'
[thirdparty/git.git] / t / t7501-commit-basic-functionality.sh
index 512ae2781fe2c9b02a5a37f5230ec14992114ae7..fb5417d5e7e044f5bfbbe1b4ef8f6b42857c4e73 100755 (executable)
@@ -667,10 +667,7 @@ test_expect_success 'amend can copy notes' '
 
 test_expect_success 'commit a file whose name is a dash' '
        git reset --hard &&
-       for i in 1 2 3 4 5
-       do
-               echo $i
-       done >./- &&
+       test_write_lines 1 2 3 4 5 >./- &&
        git add ./- &&
        test_tick &&
        git commit -m "add dash" >output </dev/null &&