git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] t5000: modernise archive and :(glob) test

From
Kostya Farber <kostya.farber@gmail.com>
Date
Feb 4, 2023, 20:41 UTC
Message-ID
<20230204204124.80741-1-kostya.farber@gmail.com>
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 exepected in the body
Signed-off-by: Kostya Farber <kostya.farber@gmail.com>
---
 t/t5000-tar-tree.sh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh
index d473048138..eb3214bc17 100755
--- a/t/t5000-tar-tree.sh
+++ b/t/t5000-tar-tree.sh
@@ -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
 '
 
-- 
2.39.0
Next: Eric Sunshine
Message 1 of 2 in “t5000: modernise archive and :(glob) test”
  1. t5000: modernise archive and :(glob) testKostya Farber, Feb 4, 2023
  2. Eric SunshineFeb 5, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.