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

[GSoC PATCH] t0410: use test_path_exists instead of test -e

From
TKTilak Kumar <raaztilak07@gmail.com>
Date
Oct 29, 2026, 14:15 UTC
Message-ID
<20261029141515.68254-1-raaztilak07@gmail.com>

Use the test_path_exists helper so that a missing promisor packfile is reported with a clear message instead of failing silently.

Signed-off-by: Tilak Kumar <raaztilak07@gmail.com>
---
 t/t0410-partial-clone.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/t0410-partial-clone.sh b/t/t0410-partial-clone.sh
index a54685e3c7..c3c5fd6e33 100755
--- a/t/t0410-partial-clone.sh
+++ b/t/t0410-partial-clone.sh
@@ -627,7 +627,7 @@ test_expect_success 'gc stops traversal when a missing but promised object is re
 	git -C repo gc &&
 
 	# Ensure that the promisor packfile still exists, and remove it
-	test -e repo/.git/objects/pack/pack-$HASH.pack &&
+	test_path_exists repo/.git/objects/pack/pack-$HASH.pack &&
 	rm repo/.git/objects/pack/pack-$HASH.* &&
 
 	# Ensure that the single other pack contains the commit, but not the tree
-- 
2.55.0
Next: Junio C Hamano
Message 1 of 2 in “t0410: use test_path_exists instead of test -e”
  1. t0410: use test_path_exists instead of test -eTilak Kumar, Oct 29, 2026
  2. Junio C HamanoOct 29, 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.