Skip to content

Commit b3431bc

Browse files
committed
Don't use seq in tests, not everyone has it
For example Mac OS X lacks the seq command. So we cannot use it there. A good old while loop works just as good. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
1 parent cbc6bda commit b3431bc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

t/t5302-pack-index.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ test_expect_success \
1010
'setup' \
1111
'rm -rf .git
1212
git-init &&
13-
for i in `seq -w 100`
13+
i=1 &&
14+
while test $i -le 100
1415
do
16+
i=`printf '%03i' $i`
1517
echo $i >file_$i &&
1618
test-genrandom "$i" 8192 >>file_$i &&
17-
git-update-index --add file_$i || return 1
19+
git-update-index --add file_$i &&
20+
i=`expr $i + 1` || return 1
1821
done &&
1922
{ echo 101 && test-genrandom 100 8192; } >file_101 &&
2023
git-update-index --add file_101 &&

0 commit comments

Comments
 (0)