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

[PATCH] t1501: don't reassign EMPTY_BLOB and EMPTY_TREE

From
René Scharfe <l.s.r@web.de>
Date
Nov 24, 2026, 09:15 UTC
Message-ID
<0e64c973-4ad1-4eaa-938e-f9d60418562a@web.de>

The variables EMPTY_BLOB AND EMPTY_TREE are already set by test-lib.sh, so just use them.

Signed-off-by: René Scharfe <l.s.r@web.de>
---
 t/t1501-work-tree.sh | 2 --
 1 file changed, 2 deletions(-)
diff --git a/t/t1501-work-tree.sh b/t/t1501-work-tree.sh
index 8c94ac2e70..e6f43b0fb8 100755
--- a/t/t1501-work-tree.sh
+++ b/t/t1501-work-tree.sh
@@ -5,8 +5,6 @@ test_description='test separate work tree'
 . ./test-lib.sh
 
 test_expect_success 'setup' '
-	EMPTY_TREE=$(git write-tree) &&
-	EMPTY_BLOB=$(git hash-object -t blob --stdin </dev/null) &&
 	CHANGED_BLOB=$(echo changed | git hash-object -t blob --stdin) &&
 	EMPTY_BLOB7=$(echo $EMPTY_BLOB | sed "s/\(.......\).*/\1/") &&
 	CHANGED_BLOB7=$(echo $CHANGED_BLOB | sed "s/\(.......\).*/\1/") &&
-- 
2.56.1
Next: Ben Knoble
Message 1 of 4 in “t1501: don't reassign EMPTY_BLOB and EMPTY_TREE”
  1. t1501: don't reassign EMPTY_BLOB and EMPTY_TREERené Scharfe, Nov 24, 2026
  2. Ben KnobleNov 24, 2026
  3. René ScharfeNov 25, 2026
  4. Junio C HamanoNov 24, 2026

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.