doesn't abort commit if user doesn't modify the template commit message
What steps will reproduce the problem?
- set a template commit message
- try doing a commit
- click "Commit" without modifying the message
What is the expected output? What do you see instead?
The commit should be aborted, or a confirmation message to the tune of "You didn't edit the commit message. Proceed anyway?" should appear.
What version of TortoiseGit and Git are you using? On what operating system?
- TortoiseGit 188.8.131.52 (C:\Program Files\TortoiseGit\bin)
- git version 2.20.1.windows.1
- Windows 7 x64
Please provide any additional information below.
Here's what happens at the command line:
> git config commit.template C:\Users\user\commitmsg.txt > vim hello.txt > git commit hello.txt (Vim opens, I don't modify the template, exit Vim and...) Aborting commit; you did not edit the message.
That's similar to what Git does when you enter an empty commit message:
> git commit hello.txt (Vim opens, I erase everything, exit Vim and...) Aborting commit due to empty commit message.