@@ -469,7 +469,10 @@ test_expect_success 'git rebase --update-ref with core.commentChar and branch on
git checkout base &&
test_commit msg3 &&
git checkout topic2 &&
- git -c core.commentChar=% rebase --update-refs base
+ GIT_SEQUENCE_EDITOR="cat >actual" git -c core.commentChar=% \
+ rebase -i --update-refs base &&
+ grep "% Ref refs/heads/wt-topic checked out at" actual &&
+ grep "% Ref refs/heads/topic2 checked out at" actual
'
test_done
@@ -231,12 +231,14 @@ test_expect_success 'identification of reverted commit (--reference)' '
test_expect_success 'git revert --reference with core.commentChar' '
test_when_finished "git reset --hard to-ident" &&
git checkout --detach to-ident &&
- git -c core.commentChar=% revert \
+ GIT_EDITOR="cat | head -4 >actual" git -c core.commentChar=% revert \
--edit --reference HEAD &&
- git log -1 --format=%B HEAD >actual &&
- printf "This reverts commit $(git show -s \
- --pretty=reference HEAD^).\n\n" \
- >expect &&
+ cat <<-EOF >expect &&
+ % *** SAY WHY WE ARE REVERTING ON THE TITLE LINE ***
+
+ This reverts commit $(git show -s --pretty=reference HEAD^).
+
+ EOF
test_cmp expect actual
'