diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2013-01-10 22:24:52 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-10 14:47:35 -0800 |
commit | 6f53feac95f35d470789348c051f6cee93449642 (patch) | |
tree | 9055f16f986cf8b86783039fc1d2d6461c57c75f /t/t0008-ignores.sh | |
parent | 368aa52952deb631b38a89837c4abbb00c5261c1 (diff) | |
download | git-6f53feac95f35d470789348c051f6cee93449642.tar.gz git-6f53feac95f35d470789348c051f6cee93449642.tar.xz |
t0008: avoid brace expansion
Brace expansion is a shell feature that's not required by POSIX and not
supported by dash nor NetBSD's sh. Explicitly list all combinations
instead. Also avoid calling touch by creating the test files with a
redirection instead, as suggested by Junio.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0008-ignores.sh')
-rwxr-xr-x | t/t0008-ignores.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/t/t0008-ignores.sh b/t/t0008-ignores.sh index 9b0fcd610..d7df7198c 100755 --- a/t/t0008-ignores.sh +++ b/t/t0008-ignores.sh @@ -129,8 +129,13 @@ test_expect_success 'setup' ' one ignored-* EOF - touch {,a/}{not-ignored,ignored-{and-untracked,but-in-index}} && - git add -f {,a/}ignored-but-in-index + for dir in . a + do + : >$dir/not-ignored && + : >$dir/ignored-and-untracked && + : >$dir/ignored-but-in-index + done && + git add -f ignored-but-in-index a/ignored-but-in-index && cat <<-\EOF >a/.gitignore && two* *three |