This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Description Prerequisites
Description
Comment lines are included in the commit message upon commit when your ~/.gitmessage file contains commented lines.
Steps to Reproduce
Create a ~/.gitmessage file that contains two blank lines followed by two lines starting with a # character
Execute the command touch test from the command-line inside a Git repository
Launch Atom in Safe Mode
Open the Git panel
Double-click the test file in the Unstaged Changes panel
Type foo in the first line of the Git commit message box
Click "Commit to master"
Go back to the command line and execute 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%
Versions
Atom : 1.35.0-nightly2
Electron: 2.0.14
Chrome : 61.0.3163.100
Node : 8.9.3
Additional Information
I haven't tested other configurations of commented and uncommented lines (such as starting with comments and then having blank lines)
My ~/.gitmessage file is symlinked to my dotfiles directory (though I hope that won't make a difference)
Reactions are currently unavailable
Prerequisites
Description
Comment lines are included in the commit message upon commit when your
~/.gitmessagefile contains commented lines.Steps to Reproduce
~/.gitmessagefile that contains two blank lines followed by two lines starting with a#charactertouch testfrom the command-line inside a Git repositorytestfile in the Unstaged Changes panelfooin the first line of the Git commit message boxgit log -1Expected behavior:
The commit comment text to consist only of
fooActual behavior:
The commit comment contains
foo, the blank line, and the two following commented linesReproduces how often:
100%
Versions
Additional Information
~/.gitmessagefile is symlinked to my dotfiles directory (though I hope that won't make a difference)