test -e does not provide a nice error message when we hit test failures, so use test_path_exists() instead. Further, verify that if the path exists, then the path is a file using test_path_is_file() helper function. Thanks, Mahendra Mahendra Dani (1): t1403: verify that path exists and is a file t/t1403-show-ref.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Range-diff against v1: 1: 42dd686abe = 1: 42dd686abe t1403: verify that path exists and is a file -- 2.39.2 (Apple Git-143)