git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] A test for commit --amend allowing changing of a very empty commit message
@ 2008-02-21 19:54 Alex Riesen
  2008-02-21 20:23 ` Junio C Hamano
  0 siblings, 1 reply; 8+ messages in thread
From: Alex Riesen @ 2008-02-21 19:54 UTC (permalink / raw)
  To: git

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---

Well, it fails... In current master

 t/t7501-commit.sh |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh
index 361886c..f81bf7b 100755
--- a/t/t7501-commit.sh
+++ b/t/t7501-commit.sh
@@ -345,4 +345,14 @@ test_expect_success 'amend using the message from a commit named with tag' '
 
 '
 
+test_expect_success 'allow amend of an empty message' '
+
+	git reset --hard &&
+	sha=$(:|git commit-tree HEAD^{tree} -p HEAD) &&
+	git reset --hard $sha &&
+	git commit --amend -mChanged &&
+	git cat-file commit HEAD|tail -n1|grep ^Changed$
+
+'
+
 test_done
-- 
1.5.4.2.204.g6d0ab

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

end of thread, other threads:[~2008-02-21 22:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-21 19:54 [PATCH] A test for commit --amend allowing changing of a very empty commit message Alex Riesen
2008-02-21 20:23 ` Junio C Hamano
2008-02-21 20:35   ` Alex Riesen
2008-02-21 20:38     ` [PATCH] Fix amending of a commit with an empty message Alex Riesen
2008-02-21 20:56       ` Junio C Hamano
2008-02-21 21:32         ` Alex Riesen
2008-02-21 22:01           ` Junio C Hamano
2008-02-21 20:57     ` [PATCH] A test for commit --amend allowing changing of a very empty commit message Johannes Schindelin

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