Closed lee-dohm closed 5 years ago
Comment lines are included in the commit message upon commit when your ~/.gitmessage file contains commented lines.
~/.gitmessage
#
touch test
test
foo
git log -1
Expected behavior:
The commit comment text to consist only of foo
Actual behavior:
The commit comment contains foo, the blank line, and the two following commented lines
Reproduces how often:
100%
Atom : 1.35.0-nightly2 Electron: 2.0.14 Chrome : 61.0.3163.100 Node : 8.9.3
just merged https://github.com/atom/github/pull/1902 which should resolve this
Prerequisites
Description
Comment lines are included in the commit message upon commit when your
~/.gitmessage
file contains commented lines.Steps to Reproduce
~/.gitmessage
file that contains two blank lines followed by two lines starting with a#
charactertouch test
from the command-line inside a Git repositorytest
file in the Unstaged Changes panelfoo
in the first line of the Git commit message boxgit log -1
Expected behavior:
The commit comment text to consist only of
foo
Actual behavior:
The commit comment contains
foo
, the blank line, and the two following commented linesReproduces how often:
100%
Versions
Additional Information
~/.gitmessage
file is symlinked to my dotfiles directory (though I hope that won't make a difference)