git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] add test case for rebase of empty commit
@ 2012-06-27 16:22 Martin von Zweigbergk
  2012-06-27 21:02 ` Junio C Hamano
  0 siblings, 1 reply; 8+ messages in thread
From: Martin von Zweigbergk @ 2012-06-27 16:22 UTC (permalink / raw)
  To: git; +Cc: Martin von Zweigbergk

---
 t/t3401-rebase-partial.sh |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/t/t3401-rebase-partial.sh b/t/t3401-rebase-partial.sh
index 7ba1797..7f8693b 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
-- 
1.7.9.3.327.g2980b

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-07-03 23:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-27 16:22 [PATCH] add test case for rebase of empty commit Martin von Zweigbergk
2012-06-27 21:02 ` Junio C Hamano
2012-06-28 11:30   ` Neil Horman
2012-07-03 18:20   ` Neil Horman
2012-07-03 19:00     ` Junio C Hamano
2012-07-03 20:31       ` Neil Horman
2012-07-03 21:13         ` Junio C Hamano
2012-07-03 23:40           ` Neil Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).