File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ test_expect_success 'add a large file or two' '
53
53
for p in .git/objects/pack/pack-*.pack
54
54
do
55
55
count=$(( $count + 1 ))
56
- if test -f "$p" && idx=${p%.pack}.idx && test -f "$idx"
56
+ if test_path_is_file "$p" &&
57
+ idx=${p%.pack}.idx && test_path_is_file "$idx"
57
58
then
58
59
continue
59
60
fi
@@ -65,7 +66,7 @@ test_expect_success 'add a large file or two' '
65
66
test $cnt = 2 &&
66
67
for l in .git/objects/??/??????????????????????????????????????
67
68
do
68
- test -f "$l" || continue
69
+ test_path_is_file "$l" || continue
69
70
bad=t
70
71
done &&
71
72
test -z "$bad" &&
@@ -76,7 +77,8 @@ test_expect_success 'add a large file or two' '
76
77
for p in .git/objects/pack/pack-*.pack
77
78
do
78
79
count=$(( $count + 1 ))
79
- if test -f "$p" && idx=${p%.pack}.idx && test -f "$idx"
80
+ if test_path_is_file "$p" &&
81
+ idx=${p%.pack}.idx && test_path_is_file "$idx"
80
82
then
81
83
continue
82
84
fi
@@ -111,7 +113,7 @@ test_expect_success 'packsize limit' '
111
113
count=0 &&
112
114
for pi in .git/objects/pack/pack-*.idx
113
115
do
114
- test -f "$pi" && count=$(( $count + 1 ))
116
+ test_path_is_file "$pi" && count=$(( $count + 1 ))
115
117
done &&
116
118
test $count = 2 &&
117
119
You can’t perform that action at this time.
0 commit comments