Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Auto-wrap removed text from commit message #1382

@Arcanemagus

Description

@Arcanemagus

Prerequisites

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

  1. Write a commit message that has a (the last?) line starting with # when wrapped.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions