t5516: drop unnecessary subshell and command invocation
commite57ea501d00eab6191993f35e502aface5ceac5e
authorEric Sunshine <sunshine@sunshineco.com>
Thu, 9 Dec 2021 05:11:01 +0000 (9 00:11 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Dec 2021 18:29:48 +0000 (13 10:29 -0800)
treea0e43bed2a609bdc750b81c5b68e9d0add6a5d77
parent88511d271b503e7e4681d7d8ae01cd3ee3294e35
t5516: drop unnecessary subshell and command invocation

To create its "expect" file, this test pipes into `sort` the output of
`git for-each-ref` and a copy of that same output but with a minor
textual transformation applied. To do so, it employs a subshell and
commands `cat` and `sed` even though the same result can be accomplished
by `sed` alone (without a subshell).

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5516-fetch-push.sh