diff options
author | Hu Jialun <hujialun@comp.nus.edu.sg> | 2021-07-09 21:07:32 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-09 22:08:18 +0300 |
commit | 6f70f00b4f94c036767cbe0f4cd23db573a4e8ba (patch) | |
tree | 0f261220ea7f1e0b2d8866d94c158b2efbd5da1e /t/t7500-commit-template-squash-signoff.sh | |
parent | 54ba2f1862df7144eb3a8b192d992b520bdc3743 (diff) |
commit: remove irrelavent prompt on `--allow-empty-message`
Even when the `--allow-empty-message` option is given, "git commit"
offers an interactive editor session with prefilled message that says
the commit will be aborted if the buffer is emptied, which is wrong.
Remove the "an empty message aborts" part from the message when the
option is given to fix it.
Helped-by: Junio C Hamano <gitster@pobox.com>
Helped-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Helped-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Hu Jialun <hujialun@comp.nus.edu.sg>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7500-commit-template-squash-signoff.sh')
-rwxr-xr-x | t/t7500-commit-template-squash-signoff.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7500-commit-template-squash-signoff.sh b/t/t7500-commit-template-squash-signoff.sh index 7d02f79c0d..54c2082acb 100755 --- a/t/t7500-commit-template-squash-signoff.sh +++ b/t/t7500-commit-template-squash-signoff.sh @@ -498,7 +498,7 @@ test_expect_success 'invalid message options when using --fixup' ' cat >expected-template <<EOF # Please enter the commit message for your changes. Lines starting -# with '#' will be ignored, and an empty message aborts the commit. +# with '#' will be ignored. # # Author: A U Thor <author@example.com> # |