提交 2b5ba7b0 编写于 作者: M Martin von Zweigbergk 提交者: Junio C Hamano

add test case for rebase of empty commit

Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 ac2b0e8f
......@@ -42,4 +42,12 @@ test_expect_success 'rebase --merge topic branch that was partially merged upstr
test_path_is_missing .git/rebase-merge
'
test_expect_success 'rebase ignores empty commit' '
git reset --hard A &&
git commit --allow-empty -m empty &&
test_commit D &&
git rebase C &&
test $(git log --format=%s C..) = "D"
'
test_done
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册