summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorLibravatar Kaartic Sivaraam <kaarticsivaraam91196@gmail.com>2017-07-17 21:06:15 +0530
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-07-17 15:10:41 -0700
commitbc17f35f8c65295fbfcb281dda8560136fb26fb4 (patch)
tree0ed2f0e5bbaa8e07ebda466083b9546ccf4bf3a9 /compat
parentGit 2.13.3 (diff)
downloadtgif-bc17f35f8c65295fbfcb281dda8560136fb26fb4.tar.xz
commit: check for empty message before the check for untouched template
The check for whether the template given to 'git commit' is untouched is done before the empty message check. This results in a wrong error message being displayed in the following case. When the user removes everything in template completely to abort the commit he is shown the "template untouched" error which is wrong. He should be shown the "empty message" error. Do the empty message check before checking for an untouched template thus fixing this issue. Signed-off-by: Kaartic Sivaraam <kaarticsivaraam91196@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
0 files changed, 0 insertions, 0 deletions