]> git.ipfire.org Git - thirdparty/git.git/commit - t/t7501-commit-basic-functionality.sh
commit: --amend -m '' silently fails to wipe message
authorAdam Dinwoodie <adam@dinwoodie.org>
Wed, 6 Apr 2016 17:15:03 +0000 (18:15 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Apr 2016 20:21:43 +0000 (13:21 -0700)
commit178e8143b4f79290b3ffe40fe2ebf769fccc1ab7
treee8cb006f2c609e7e7e4539fda69b6bbc10040de5
parent765428699a5381f113d19974720bc91b5bfeaf1d
commit: --amend -m '' silently fails to wipe message

`git commit --amend -m ''` seems to be an unambiguous request to blank a
commit message, but it actually leaves the commit message as-is.  That's
the case regardless of whether `--allow-empty-message` is specified, and
doesn't so much as drop a non-zero return code.

Add failing tests to show this behaviour.

Signed-off-by: Adam Dinwoodie <adam@dinwoodie.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7501-commit.sh