diff options
| author | Mahendra Dani <danimahendra0904@gmail.com> | 2025-03-04 16:57:28 +0530 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-03-04 10:13:54 -0800 |
| commit | 107d8893032ef5b4e6216377752f0ac1d17a0615 (patch) | |
| tree | db3c39401d1a7eca742d135ca8d7ee72005c604b | |
| parent | 6a64ac7b014fa2cfa7a69af3c253bcd53a94b428 (diff) | |
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>
| -rwxr-xr-x | t/t1403-show-ref.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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" } && |
