diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2018-08-28 19:38:26 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-29 10:34:10 -0700 |
commit | de231e577b6d685bd4457450af7129ddd8892269 (patch) | |
tree | e827cb86d8cf3757b362a4a08342fe79acb4a0ce /t/t5408-send-pack-stdin.sh | |
parent | tests: fix and add lint for non-portable grep --file (diff) | |
download | tgif-de231e577b6d685bd4457450af7129ddd8892269.tar.xz |
tests: fix non-portable "${var:-"str"}" construct
On both AIX 7200-00-01-1543 and FreeBSD 11.2-RELEASE-p2 the
"${var:-"str"}" syntax means something different than what it does
under the bash or dash shells.
Both will consider the start of the new unescaped quotes to be a new
argument to test_expect_success, resulting in the following error:
error: bug in the test script: 'git diff-tree initial # magic
is (not' does not look like a prereq
Fix this by removing the redundant quotes. There's no need for them,
and the resulting code works under all the aforementioned shells. This
fixes a regression in c2f1d3989 ("t4013: test new output from diff
--abbrev --raw", 2017-12-03) first released with Git v2.16.0.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5408-send-pack-stdin.sh')
0 files changed, 0 insertions, 0 deletions