3 test_description
='rebasing a commit with multi-line first paragraph.'
5 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
=main
6 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 test_expect_success setup
'
15 git commit -m initial &&
19 git commit -a -m "A sample commit log message that has a long
20 summary that spills over multiple lines.
22 But otherwise with a sane description." &&
26 git reset --hard HEAD^ &&
30 git commit -m second &&
32 git checkout -b side2 &&
36 git commit -m third &&
39 git commit -a -m fourth &&
40 git checkout -b side-merge &&
41 git reset --hard HEAD^^ &&
42 git merge --no-ff -m "A merge commit log message that has a long
43 summary that spills over multiple lines.
45 But otherwise with a sane description." side2 &&
46 git branch side-merge-original
49 test_expect_success rebase
'
53 git cat-file commit HEAD | sed -e "1,/^\$/d" >actual &&
54 git cat-file commit side@{1} | sed -e "1,/^\$/d" >expect &&
55 test_cmp expect actual