🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.git
2 messages
2 total messages Started by Tilak Kumar Thu, 29 Oct 2026 14:15
[GSoC PATCH] t0410: use test_path_exists instead of test -e
#1822
Author: Tilak Kumar
Date: Thu, 29 Oct 2026 14:15
25 lines
11148 bytes
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
Re: [GSoC PATCH] t0410: use test_path_exists instead of test -e
#1852
Author: Junio C Hamano
Date: Thu, 29 Oct 2026 18:51
15 lines
12755 bytes
Tilak Kumar <raaztilak07@gmail.com> writes:

> 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(-)

Makes sense.  Will queue.

Thanks.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads