]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t7001: use here-docs instead of echo
authorShubham Verma <shubhunic@gmail.com>
Thu, 11 Feb 2021 19:47:03 +0000 (01:17 +0530)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Feb 2021 21:42:16 +0000 (13:42 -0800)
Change from old style to current style by taking advantage of
here-docs instead of echo commands.

Signed-off-by: Shubham Verma <shubhunic@gmail.com>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7001-mv.sh

index f55d18ed9cd4355326a5e9bf3b38b2ef4ee4d387..c8c22c09e5a498133b318e9c9d385d957d69ae17 100755 (executable)
@@ -228,7 +228,10 @@ test_expect_success 'git mv to move multiple sources into a directory' '
        git add dir/?.txt &&
        git mv dir/a.txt dir/b.txt other &&
        git ls-files >actual &&
-       { echo other/a.txt; echo other/b.txt; } >expect &&
+       cat >expect <<-\EOF &&
+       other/a.txt
+       other/b.txt
+       EOF
        test_cmp expect actual
 '