Signed-off-by: Alex Riesen <raa.lkml@xxxxxxxxx> --- 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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html