3 test_description='rebasing a commit with multi-line first paragraph.'
7 test_expect_success setup '
12 git commit -m initial &&
16 git commit -a -m "A sample commit log message that has a long
17 summary that spills over multiple lines.
19 But otherwise with a sane description." &&
23 git reset --hard HEAD^ &&
27 git commit -m second &&
29 git checkout -b side2 &&
33 git commit -m third &&
36 git commit -a -m fourth &&
37 git checkout -b side-merge &&
38 git reset --hard HEAD^^ &&
39 git merge --no-ff -m "A merge commit log message that has a long
40 summary that spills over multiple lines.
42 But otherwise with a sane description." side2 &&
43 git branch side-merge-original
46 test_expect_success rebase '
50 git cat-file commit HEAD | sed -e "1,/^\$/d" >actual &&
51 git cat-file commit side@{1} | sed -e "1,/^\$/d" >expect &&
52 test_cmp expect actual
55 test_expect_success REBASE_P rebasep '
57 git checkout side-merge &&
59 git cat-file commit HEAD | sed -e "1,/^\$/d" >actual &&
60 git cat-file commit side-merge-original | sed -e "1,/^\$/d" >expect &&
61 test_cmp expect actual