send-email: accept absolute path even on Windows
[git/dscho.git] / t / t3102-ls-tree-wildcards.sh
blobf2b2a524d95e7577334f2b743a52553a137c270e
1 #!/bin/sh
3 test_description='ls-tree with(out) wildcards'
5 . ./test-lib.sh
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" &&
11 git commit -m test
14 test_expect_success 'ls-tree a* matches literally' '
15 cat >expected <<EOF &&
16 100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a*/three
17 EOF
18 git ls-tree -r HEAD "a*" >actual &&
19 test_cmp expected actual
22 test_done