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 <danimahendra0904@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Mahendra Dani committed Mar 4, 2025 at 16:57 UTC 107d8893032ef5b4e6216377752f0ac1d17a0615
1 file changed +1 -1
t/t1403-show-ref.sh
+1 -1
@@ -196,7 +196,7 @@ test_expect_success 'show-ref --verify with dangling ref' '
196
197 remove_object() {
198 file=$(sha1_file "$*") &&
199 - test -e "$file" &&
199 + test_path_is_file "$file" &&
200 rm -f "$file"
201 } &&
202