git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-merge adds test to a message -- bug?
@ 2008-03-23 23:13 Jörg Sommer
  2008-03-24  5:17 ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Jörg Sommer @ 2008-03-23 23:13 UTC (permalink / raw)
  To: git

Hi,

is it correct, that this test fails?

diff --git a/t/t6032-merge-message.sh b/t/t6032-merge-message.sh
new file mode 100755
index 0000000..97157bd
--- /dev/null
+++ b/t/t6032-merge-message.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+test_description='test for merge message'
+
+. ./test-lib.sh
+
+test_expect_success setup '
+	: > file1 &&
+	git add file1 &&
+        test_tick &&
+	git commit -m "commit 1" &&
+	: > file2 &&
+	git add file2 &&
+        test_tick &&
+	git commit -m "commit 2" &&
+
+	git checkout -b new-branch HEAD~1 &&
+	: > file3 &&
+	git add file3 &&
+        test_tick &&
+	git commit -m "commit 3"
+'
+
+test_expect_success merge 'git merge -m master-merge master'
+
+test_expect_failure 'merge message check' '
+	test "$(git cat-file commit HEAD | sed "1,/^\$/d")" = master-merge
+'
+
+test_done

Bye, Jörg.
-- 
Unsere Zweifel sind Verräter und oft genug verspielen wir den möglichen
Gewinn, weil wir den Versuch nicht wagen.

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

end of thread, other threads:[~2008-04-09 10:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-23 23:13 git-merge adds test to a message -- bug? Jörg Sommer
2008-03-24  5:17 ` Junio C Hamano
2008-03-24 11:08   ` Johannes Schindelin
2008-03-24 16:45     ` Junio C Hamano
2008-03-25  0:12       ` Jörg Sommer
2008-03-25 20:04         ` Johannes Schindelin
2008-04-09 10:40           ` Jörg Sommer

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).