Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShubham Verma <shubhunic@gmail.com>2021-02-11 22:47:03 +0300
committerJunio C Hamano <gitster@pobox.com>2021-02-12 00:42:16 +0300
commit39252c833e0402c011dfb940a87db9d0a64ddd0c (patch)
tree3784b1817fe7d6601cbd3a939a843364355f7be2 /t/t7001-mv.sh
parent5d683c3f4bcef667ca128d3d737fd36118d49a3d (diff)
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>
Diffstat (limited to 't/t7001-mv.sh')
-rwxr-xr-xt/t7001-mv.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/t7001-mv.sh b/t/t7001-mv.sh
index f55d18ed9c..c8c22c09e5 100755
--- a/t/t7001-mv.sh
+++ b/t/t7001-mv.sh
@@ -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
'