t3102: style modernization

Use <<-\END_OF_HERE_DOCUMENT to allow indenting the HERE document to make it clear where each test begins and ends, and relieve readers from having to worry about variable substitution. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Dec 1, 2014 at 11:45 UTC f1f6224c72255e17230e7347d64a2be292a9f299
1 file changed +8 -8
t/t3102-ls-tree-wildcards.sh
+8 -8
@@ -12,19 +12,19 @@ test_expect_success 'setup' '
12 '
13
14 test_expect_success 'ls-tree a[a] matches literally' '
15 - cat >expected <<EOF &&
16 -100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a[a]/three
17 -EOF
15 + cat >expect <<-\EOF &&
16 + 100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 a[a]/three
17 + EOF
18 git ls-tree -r HEAD "a[a]" >actual &&
19 - test_cmp expected actual
19 + test_cmp expect actual
20 '
21
22 test_expect_success 'ls-tree outside prefix' '
23 - cat >expected <<EOF &&
24 -100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 ../a[a]/three
25 -EOF
23 + cat >expect <<-\EOF &&
24 + 100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 ../a[a]/three
25 + EOF
26 ( cd aa && git ls-tree -r HEAD "../a[a]"; ) >actual &&
27 - test_cmp expected actual
27 + test_cmp expect actual
28 '
29
30 test_expect_failure 'ls-tree does not yet support negated pathspec' '