]> git.ipfire.org Git - thirdparty/git.git/blame - t/t3102-ls-tree-wildcards.sh
l10n: Update Swedish translation (1979t0f0u)
[thirdparty/git.git] / t / t3102-ls-tree-wildcards.sh
CommitLineData
f0096c06
NTND
1#!/bin/sh
2
145f86a0 3test_description='ls-tree with(out) globs'
f0096c06
NTND
4
5. ./test-lib.sh
6
7test_expect_success 'setup' '
145f86a0
JS
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" &&
f0096c06
NTND
11 git commit -m test
12'
13
145f86a0 14test_expect_success 'ls-tree a[a] matches literally' '
f0096c06 15 cat >expected <<EOF &&
145f86a0 16100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a[a]/three
f0096c06 17EOF
145f86a0 18 git ls-tree -r HEAD "a[a]" >actual &&
f0096c06
NTND
19 test_cmp expected actual
20'
21
22test_done