diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-07-09 09:02:15 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-07-09 09:02:15 -0700 |
commit | 69833baa041388ce353c5d203a828fc37c66273c (patch) | |
tree | d40c5da66b930b8f5723a40c09e4a1d7326dc5eb /t | |
parent | Merge branch 'pw/git-p4-tests' (diff) | |
parent | add test case for rebase of empty commit (diff) | |
download | tgif-69833baa041388ce353c5d203a828fc37c66273c.tar.xz |
Merge branch 'mz/empty-rebase-test'
We did not have test to make sure "git rebase" without extra options
filters out an empty commit in the original history.
* mz/empty-rebase-test:
add test case for rebase of empty commit
Diffstat (limited to 't')
-rwxr-xr-x | t/t3401-rebase-partial.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t3401-rebase-partial.sh b/t/t3401-rebase-partial.sh index 7ba17974c5..7f8693b928 100755 --- a/t/t3401-rebase-partial.sh +++ b/t/t3401-rebase-partial.sh @@ -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 |