t7001: use here-docs instead of echo
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>
Shubham Verma committed
Feb 12, 2021 at 01:17 UTC
39252c833e0402c011dfb940a87db9d0a64ddd0c
1 file changed
+4
-1
t/t7001-mv.sh
+4
-1
@@ -228,7 +228,10 @@ test_expect_success 'git mv to move multiple sources into a directory' '
228
git add dir/?.txt &&
229
git mv dir/a.txt dir/b.txt other &&
230
git ls-files >actual &&
231
- { echo other/a.txt; echo other/b.txt; } >expect &&
231
+ cat >expect <<-\EOF &&
232
+ other/a.txt
233
+ other/b.txt
234
+ EOF
235
test_cmp expect actual
236
'
237