Tweak t3102-ls-tree-wildcards to run on Windows

The test case fails on Windows, because "a*" is an invalid file name. Therefore, use "a[a]" instead. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Acked-by: Nguyen Thai Ngoc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Sixt committed May 12, 2011 at 10:37 UTC 145f86a00925b126412387c5ce072ab13cd4df03
1 file changed +7 -7
t/t3102-ls-tree-wildcards.sh
+7 -7
@@ -1,21 +1,21 @@
1 #!/bin/sh
2
3 -test_description='ls-tree with(out) wildcards'
3 +test_description='ls-tree with(out) globs'
4
5 . ./test-lib.sh
6
7 test_expect_success 'setup' '
8 - mkdir a aa "a*" &&
9 - touch a/one aa/two "a*/three" &&
10 - git add a/one aa/two "a*/three" &&
8 + mkdir a aa "a[a]" &&
9 + touch a/one aa/two "a[a]/three" &&
10 + git add a/one aa/two "a[a]/three" &&
11 git commit -m test
12 '
13
14 -test_expect_success 'ls-tree a* matches literally' '
14 +test_expect_success 'ls-tree a[a] matches literally' '
15 cat >expected <<EOF &&
16 -100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a*/three
16 +100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a[a]/three
17 EOF
18 - git ls-tree -r HEAD "a*" >actual &&
18 + git ls-tree -r HEAD "a[a]" >actual &&
19 test_cmp expected actual
20 '
21