mirror of
https://github.com/git/git
synced 2024-09-06 00:18:22 +00:00
rebase -i: add test for reflog message
Check that the reflog message written to the branch reflog when the rebase is completed is correct Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
cdb866b30b
commit
1ceb9dfab7
|
@ -169,6 +169,13 @@ test_expect_success 'reflog for the branch shows state before rebase' '
|
|||
test $(git rev-parse branch1@{1}) = $(git rev-parse original-branch1)
|
||||
'
|
||||
|
||||
test_expect_success 'reflog for the branch shows correct finish message' '
|
||||
printf "rebase -i (finish): refs/heads/branch1 onto %s\n" \
|
||||
"$(git rev-parse branch2)" >expected &&
|
||||
git log -g --pretty=%gs -1 refs/heads/branch1 >actual &&
|
||||
test_cmp expected actual
|
||||
'
|
||||
|
||||
test_expect_success 'exchange two commits' '
|
||||
set_fake_editor &&
|
||||
FAKE_LINES="2 1" git rebase -i HEAD~2 &&
|
||||
|
|
Loading…
Reference in a new issue