1#!/bin/sh
23
test_description='ls-tree with(out) wildcards'
45
. ./test-lib.sh
67
test_expect_success 'setup' '
8mkdir a aa "a*" &&
9touch a/one aa/two "a*/three" &&
10git add a/one aa/two "a*/three" &&
11git commit -m test
12'
1314
test_expect_success 'ls-tree a* matches literally' '
15cat >expected <<EOF &&
16100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a*/three
17EOF
18git ls-tree -r HEAD "a*" >actual &&
19test_cmp expected actual
20'
2122
test_done