From: Mahendra Dani Date: Tue, 4 Mar 2025 11:27:28 +0000 (+0530) Subject: t1403: verify that path exists and is a file X-Git-Tag: v2.50.0-rc0~126^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=107d8893032ef5b4e6216377752f0ac1d17a0615;p=thirdparty%2Fgit.git t1403: verify that path exists and is a file Verify that if the path exists then it is a file using test_path_is_file(). Signed-off-by: Mahendra Dani Signed-off-by: Junio C Hamano --- diff --git a/t/t1403-show-ref.sh b/t/t1403-show-ref.sh index 9d698b3cc3..9da3650e91 100755 --- a/t/t1403-show-ref.sh +++ b/t/t1403-show-ref.sh @@ -196,7 +196,7 @@ test_expect_success 'show-ref --verify with dangling ref' ' remove_object() { file=$(sha1_file "$*") && - test -e "$file" && + test_path_is_file "$file" && rm -f "$file" } &&