t5512: stop losing git exit code in here-docs
commit3227ddc97f7e268488791161a88760dbdaf4e6a9
authorDenton Liu <liu.denton@gmail.com>
Thu, 26 Mar 2020 08:27:49 +0000 (26 04:27 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Mar 2020 17:56:38 +0000 (27 10:56 -0700)
tree4c46b42f2c6effd14babcb827e974a26d72b8b62
parent5a85a25e3528cf94a89861800eb4b939408792e3
t5512: stop losing git exit code in here-docs

The expected references are generated using a here-doc with some inline
command substitutions. If one of the `git rev-parse` invocations within
the command substitutions fails, its return code is swallowed and we
won't know about it. Replace these command substitutions with
generate_references(), which actually reports when `git rev-parse`
fails.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5512-ls-remote.sh