]> git.ipfire.org Git - thirdparty/git.git/commit
tests: avoid nonportable {foo,bar} glob
authorJonathan Nieder <jrnieder@gmail.com>
Thu, 24 Mar 2011 08:21:24 +0000 (03:21 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Mar 2011 18:40:50 +0000 (11:40 -0700)
commit482ce70e14fdd5d03304a92f1740e6a9022e7958
treee49805608794d2f4e8276b0bb2151b528cf2d892
parent6a6ebded7f2288d098f825f97cb2c210f0344497
tests: avoid nonportable {foo,bar} glob

Unlike bash and ksh, dash and busybox ash do not support brace
expansion (as in 'echo {hello,world}').  So when dash is sh,
t6009.13 (set up dodecapus) ends up pass a string beginning with
"root{1,2," to "git merge" verbatim and the test fails.

Fix it by introducing a variable to hold the list of parents for
the dodecapus and populating it in a more low-tech way.

While at it, simplify a little by combining this setup code with the
test it sets up for.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6009-rev-list-parent.sh