[PATCH] A test for commit --amend allowing changing of a very empty commit message
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