mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
6a64ac7b01
commit
107d889303
@@ -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"
|
||||
} &&
|
||||
|
||||
|
||||
Reference in New Issue
Block a user