When I go and try to amend a commit, it fails because I have an empty commit message. The new lines are being treated as "non-empty" according to Merge but Git treats them as empty
Steps to reproduce
Steps to reproduce the behavior:
Amend a commit with newlines only in the commit message
Expected behavior
It should trim the newlines and treat it as an empty commit message and use the --no-edit flag
Version info
Description
In my Git configuration, I have
commit.template
set to a file with the following contents.When I go and try to amend a commit, it fails because I have an empty commit message. The new lines are being treated as "non-empty" according to Merge but Git treats them as empty
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
It should trim the newlines and treat it as an empty commit message and use the
--no-edit
flag