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>
This commit is contained in:
Jeff King 2017-05-08 22:59:46 -04:00 committed by Junio C Hamano
parent 9df4a6074a
commit da5a1f8100

View file

@ -20,11 +20,13 @@ has_any () {
} }
test_expect_success 'setup repo with moderate-sized history' ' test_expect_success 'setup repo with moderate-sized history' '
for i in $(test_seq 1 10); do for i in $(test_seq 1 10)
do
test_commit $i test_commit $i
done && done &&
git checkout -b other HEAD~5 && git checkout -b other HEAD~5 &&
for i in $(test_seq 1 10); do for i in $(test_seq 1 10)
do
test_commit side-$i test_commit side-$i
done && done &&
git checkout master && git checkout master &&
@ -104,7 +106,8 @@ test_expect_success 'clone from bitmapped repository' '
' '
test_expect_success 'setup further non-bitmapped commits' ' test_expect_success 'setup further non-bitmapped commits' '
for i in $(test_seq 1 10); do for i in $(test_seq 1 10)
do
test_commit further-$i test_commit further-$i
done done
' '
@ -300,7 +303,8 @@ test_expect_success 'set up reusable pack' '
test_expect_success 'pack reuse respects --honor-pack-keep' ' test_expect_success 'pack reuse respects --honor-pack-keep' '
test_when_finished "rm -f .git/objects/pack/*.keep" && test_when_finished "rm -f .git/objects/pack/*.keep" &&
for i in .git/objects/pack/*.pack; do for i in .git/objects/pack/*.pack
do
>${i%.pack}.keep >${i%.pack}.keep
done && done &&
reusable_pack --honor-pack-keep >empty.pack && reusable_pack --honor-pack-keep >empty.pack &&