Skip to content

Commit 145f86a

Browse files
j6tgitster
authored andcommitted
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 <[email protected]> Acked-by: Nguyen Thai Ngoc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 33e0f62 commit 145f86a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

t/t3102-ls-tree-wildcards.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
#!/bin/sh
22

3-
test_description='ls-tree with(out) wildcards'
3+
test_description='ls-tree with(out) globs'
44

55
. ./test-lib.sh
66

77
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" &&
1111
git commit -m test
1212
'
1313

14-
test_expect_success 'ls-tree a* matches literally' '
14+
test_expect_success 'ls-tree a[a] matches literally' '
1515
cat >expected <<EOF &&
16-
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a*/three
16+
100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a[a]/three
1717
EOF
18-
git ls-tree -r HEAD "a*" >actual &&
18+
git ls-tree -r HEAD "a[a]" >actual &&
1919
test_cmp expected actual
2020
'
2121

0 commit comments

Comments
 (0)