Skip to content

Commit 107d889

Browse files
MahendraDanigitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6a64ac7 commit 107d889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t1403-show-ref.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ test_expect_success 'show-ref --verify with dangling ref' '
196196
197197
remove_object() {
198198
file=$(sha1_file "$*") &&
199-
test -e "$file" &&
199+
test_path_is_file "$file" &&
200200
rm -f "$file"
201201
} &&
202202

0 commit comments

Comments
 (0)