Skip to content

Commit messages that begin with a hash (#) are ignored #2136

Closed
@cleavera

Description

@cleavera

Describe the bug
When using gitui to create a commit, commit messages that start with a # are ignored. This is the default behaviour of git however setting the config value core.commentChar makes the commit message work when using git on the command line, however commiting through gitui the commit message is still stripped out

To Reproduce
Steps to reproduce the behavior:

  1. Go to a project and make some changes
  2. Open git UI
  3. Commit the changes
  4. In the commit message dialog, use the message "#5123 test"
  5. Go to the log and the message for that commit is blank
  6. Make more changes
  7. Run `git config --global core.commentChar ";"``
  8. Repeat the above steps
  9. Same outcome

Expected behavior
The behaviour should match commiting with the command line, where changing the core.commentChar is respected

Screenshots
image
image
image

Context (please complete the following information):

  • OS/Distro + Version: Windows 11, 23h2, 22631.3296
  • GitUI Version: 0.24.3
  • Rust version: 1.75.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions