зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
368aa52952
Коммит
6f53feac95
|
@ -129,8 +129,13 @@ test_expect_success 'setup' '
|
||||||
one
|
one
|
||||||
ignored-*
|
ignored-*
|
||||||
EOF
|
EOF
|
||||||
touch {,a/}{not-ignored,ignored-{and-untracked,but-in-index}} &&
|
for dir in . a
|
||||||
git add -f {,a/}ignored-but-in-index
|
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 &&
|
cat <<-\EOF >a/.gitignore &&
|
||||||
two*
|
two*
|
||||||
*three
|
*three
|
||||||
|
|
Загрузка…
Ссылка в новой задаче