t5310: fix "; do" style

Our usual shell style is to put the "do" of a loop on its own line, like: while $cond do something done instead of: while $cond; do something done We have a bit of both in our code base, but the former is what's in CodingGuidelines (and outnumbers the latter in t/ by about 6:1). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed May 8, 2017 at 22:59 UTC da5a1f81008f89f4e533006df8fa536e43c9c677
1 file changed +8 -4
t/t5310-pack-bitmaps.sh
+8 -4
@@ -20,11 +20,13 @@ has_any () {
20 }
21
22 test_expect_success 'setup repo with moderate-sized history' '
23 - for i in $(test_seq 1 10); do
23 + for i in $(test_seq 1 10)
24 + do
25 test_commit $i
26 done &&
27 git checkout -b other HEAD~5 &&
27 - for i in $(test_seq 1 10); do
28 + for i in $(test_seq 1 10)
29 + do
30 test_commit side-$i
31 done &&
32 git checkout master &&
@@ -104,7 +106,8 @@ test_expect_success 'clone from bitmapped repository' '
106 '
107
108 test_expect_success 'setup further non-bitmapped commits' '
107 - for i in $(test_seq 1 10); do
109 + for i in $(test_seq 1 10)
110 + do
111 test_commit further-$i
112 done
113 '
@@ -300,7 +303,8 @@ test_expect_success 'set up reusable pack' '
303
304 test_expect_success 'pack reuse respects --honor-pack-keep' '
305 test_when_finished "rm -f .git/objects/pack/*.keep" &&
303 - for i in .git/objects/pack/*.pack; do
306 + for i in .git/objects/pack/*.pack
307 + do
308 >${i%.pack}.keep
309 done &&
310 reusable_pack --honor-pack-keep >empty.pack &&