From 8c3311231e3a29aa2baf9f3f1d10ca6c0b816b0e Mon Sep 17 00:00:00 2001 From: Shashank Date: Thu, 15 Oct 2026 10:47:16 +0000 Subject: [PATCH] t0081: modernize the code testing whether a file exists Replace the old-style shell `test -f` command with Git's modern `test_path_is_file`. Signed-off-by: Shashank Signed-off-by: Junio C Hamano --- t/t0081-find-pack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t0081-find-pack.sh b/t/t0081-find-pack.sh index ff9d56fbf1..7d5082c487 100755 --- a/t/t0081-find-pack.sh +++ b/t/t0081-find-pack.sh @@ -32,7 +32,7 @@ test_expect_success 'repack everything into a single packfile' ' ".git/objects/pack/pack-"*".pack") true ;; *) false ;; esac && - test -f "$head_commit_pack" && + test_path_is_file "$head_commit_pack" && # Everything is in the same pack test "$head_commit_pack" = "$head_tree_pack" &&