-
Notifications
You must be signed in to change notification settings - Fork 407
Auto-wrap removed text from commit message #1382
Description
Prerequisites
- Have you tried to reproduce the problem in Safe Mode?
- Have you followed all applicable steps in the debugging guide?
- Have you checked the FAQs on the message board for common solutions?
- Have you checked that your issue isn't already filed?
Description
If you are writing a commit message that includes # at the start of one of the "words" (such as referencing an issue/PR), and it just happens that the commit message automatically wraps to that being at the start of the line, that entire line is removed from the commit message with no explanation as to what happened.
Steps to Reproduce
- Write a commit message that has a (the last?) line starting with
#when wrapped. - Commit the commit.
Expected behavior:
The commit message to fully show in the final commit, regardless of how it gets wrapped.
Actual behavior:
The commit message was wrapped like the following:
trace: built-in: git 'commit' '--cleanup=strip' '-m' 'Move cpy-cli to a devDependency
The `cpy-cli` dependency is only used in the `compile` script (which is
called by `prepublish`), as such it should have been a `devDependency`
from the start but was mistakenly added as a regular `dependency` in
#280. This moves it to where it should have been.'
This lead to the #280. This moves it to where it should have been. part disappearing from the message.
Reproduces how often:
100% of the time that the message fits this profile.
Versions
OS: Windows 10 x64 Enterprise
Atom : 1.26.0-beta1
Electron: 1.7.11
Chrome : 58.0.3029.110
Node : 7.9.0
apm 1.19.0
npm 3.10.10
node 6.9.5 x64
atom 1.26.0-beta1
python 2.7.14
git 2.17.0.windows.1
visual studio 2015
Additional Information
This ended up in a commit like atom/text-buffer@cb63ce5 as I didn't notice until after it was pushed up that the last part was missing.