t5406: use write_script() instead of birthing shell script manually
commitfb23bd7af232d05d415653dc4d80b634a428f76f
authorEric Sunshine <sunshine@sunshineco.com>
Mon, 2 Jul 2018 00:23:47 +0000 (1 20:23 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Jul 2018 19:38:04 +0000 (3 12:38 -0700)
treea51c71d9a0e8df028fb0b5356a526607ddf22427
parentfbd6ef273e1d1d88a4056b986bd8a331cc61ea39
t5406: use write_script() instead of birthing shell script manually

Take advantage of write_script() to abstract-away details of shell
script creation, thus allowing the reader to focus on script content.
Readability benefits, particularly in this case, since the script body
was buried in a noisy one-liner subshell responsible for emitting
boilerplate and body.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5406-remote-rejects.sh