]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5000: modernise archive and :(glob) test
authorKostya Farber <kostya.farber@gmail.com>
Sat, 4 Feb 2023 20:41:24 +0000 (20:41 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Feb 2023 22:14:20 +0000 (14:14 -0800)
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>
t/t5000-tar-tree.sh

index d473048138466322e505f4b3b249e89f19101b0b..eb3214bc1791c2a0bff0453e0b52553b623fd9e7 100755 (executable)
@@ -402,11 +402,11 @@ test_expect_success GZIP 'extract tgz file (external gzip)' '
 
 test_expect_success 'archive and :(glob)' '
        git archive -v HEAD -- ":(glob)**/sh" >/dev/null 2>actual &&
-       cat >expect <<EOF &&
-a/
-a/bin/
-a/bin/sh
-EOF
+       cat >expect <<-\EOF &&
+       a/
+       a/bin/
+       a/bin/sh
+       EOF
        test_cmp expect actual
 '