summaryrefslogtreecommitdiff
path: root/t/t7500-commit-template-squash-signoff.sh
diff options
context:
space:
mode:
authorHu Jialun <hujialun@comp.nus.edu.sg>2021-07-09 18:07:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-07-09 19:08:18 (GMT)
commit6f70f00b4f94c036767cbe0f4cd23db573a4e8ba (patch)
tree0f261220ea7f1e0b2d8866d94c158b2efbd5da1e /t/t7500-commit-template-squash-signoff.sh
parent54ba2f1862df7144eb3a8b192d992b520bdc3743 (diff)
downloadgit-6f70f00b4f94c036767cbe0f4cd23db573a4e8ba.zip
git-6f70f00b4f94c036767cbe0f4cd23db573a4e8ba.tar.gz
git-6f70f00b4f94c036767cbe0f4cd23db573a4e8ba.tar.bz2
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-xt/t7500-commit-template-squash-signoff.sh2
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 7d02f79..54c2082 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>
#