t5000: modernise archive and :(glob) test
To match present day coding guiding codelines let's: - use <<-EOF, so we can indent all lines to the the same level for this test - use <<\EOF to notify the reader that no interpolation is expected in the body Signed-off-by: Kostya Farber <kostya.farber@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Kostya Farber committed
Feb 4, 2023 at 20:41 UTC
d912a603eda751b2846f1d2ab0843c4b7f7d0e9c
1 file changed
+5
-5
t/t5000-tar-tree.sh
+5
-5
@@ -402,11 +402,11 @@ test_expect_success GZIP 'extract tgz file (external gzip)' '
402
403
test_expect_success 'archive and :(glob)' '
404
git archive -v HEAD -- ":(glob)**/sh" >/dev/null 2>actual &&
405
- cat >expect <<EOF &&
406
-a/
407
-a/bin/
408
-a/bin/sh
409
-EOF
405
+ cat >expect <<-\EOF &&
406
+ a/
407
+ a/bin/
408
+ a/bin/sh
409
+ EOF
410
test_cmp expect actual
411
'
412