Browse Source

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>
maint
Shubham Verma 4 years ago committed by Junio C Hamano
parent
commit
39252c833e
  1. 5
      t/t7001-mv.sh

5
t/t7001-mv.sh

@ -228,7 +228,10 @@ test_expect_success 'git mv to move multiple sources into a directory' ' @@ -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
'


Loading…
Cancel
Save