From ec2c10bef8e4a586935d350afd06a421bd7d2f80 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Thu, 19 Nov 2015 20:09:46 +0100 Subject: [PATCH] modernize t9300: wrap lines after && It is customary to have each command in test snippets on its own line. Fix those instances that do not follow this guideline. Signed-off-by: Johannes Sixt Signed-off-by: Jeff King --- t/t9300-fast-import.sh | 48 ++++++++++++++++++++++++++++-------------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh index ceb3db3100..c36afdb8ff 100755 --- a/t/t9300-fast-import.sh +++ b/t/t9300-fast-import.sh @@ -130,17 +130,20 @@ test_expect_success 'A: verify tree' ' echo "$file2_data" >expect test_expect_success 'A: verify file2' ' - git cat-file blob master:file2 >actual && test_cmp expect actual + git cat-file blob master:file2 >actual && + test_cmp expect actual ' echo "$file3_data" >expect test_expect_success 'A: verify file3' ' - git cat-file blob master:file3 >actual && test_cmp expect actual + git cat-file blob master:file3 >actual && + test_cmp expect actual ' printf "$file4_data" >expect test_expect_success 'A: verify file4' ' - git cat-file blob master:file4 >actual && test_cmp expect actual + git cat-file blob master:file4 >actual && + test_cmp expect actual ' cat >expect <expect test_expect_success 'Q: verify first note for first commit' ' - git cat-file blob refs/notes/foobar~2:$commit1 >actual && test_cmp expect actual + git cat-file blob refs/notes/foobar~2:$commit1 >actual && + test_cmp expect actual ' echo "$note2_data" >expect test_expect_success 'Q: verify first note for second commit' ' - git cat-file blob refs/notes/foobar~2:$commit2 >actual && test_cmp expect actual + git cat-file blob refs/notes/foobar~2:$commit2 >actual && + test_cmp expect actual ' echo "$note3_data" >expect test_expect_success 'Q: verify first note for third commit' ' - git cat-file blob refs/notes/foobar~2:$commit3 >actual && test_cmp expect actual + git cat-file blob refs/notes/foobar~2:$commit3 >actual && + test_cmp expect actual ' cat >expect <expect test_expect_success 'Q: verify second note for first commit' ' - git cat-file blob refs/notes/foobar^:$commit1 >actual && test_cmp expect actual + git cat-file blob refs/notes/foobar^:$commit1 >actual && + test_cmp expect actual ' echo "$note2_data" >expect test_expect_success 'Q: verify first note for second commit' ' - git cat-file blob refs/notes/foobar^:$commit2 >actual && test_cmp expect actual + git cat-file blob refs/notes/foobar^:$commit2 >actual && + test_cmp expect actual ' echo "$note3_data" >expect test_expect_success 'Q: verify first note for third commit' ' - git cat-file blob refs/notes/foobar^:$commit3 >actual && test_cmp expect actual + git cat-file blob refs/notes/foobar^:$commit3 >actual && + test_cmp expect actual ' cat >expect <expect test_expect_success 'Q: verify third note for first commit' ' - git cat-file blob refs/notes/foobar2:$commit1 >actual && test_cmp expect actual + git cat-file blob refs/notes/foobar2:$commit1 >actual && + test_cmp expect actual ' cat >expect <expect test_expect_success 'Q: verify second note for second commit' ' - git cat-file blob refs/notes/foobar:$commit2 >actual && test_cmp expect actual + git cat-file blob refs/notes/foobar:$commit2 >actual && + test_cmp expect actual ' cat >input <