Skip to content

Not able to commit with predefined (template) commit message #1921

Closed
@magical-heyrovsky

Description

@magical-heyrovsky

Describe the bug

The recording below demonstrates the problem.

I have a commit message template in a gitconfig like this:

[commit]                                                                           
    template = ~/.config/git/custom-template

and gitui can also read it. So far everything as expected. When I try to commit something (c) it opens up the text area with my predefined commit message. But I am not able to immediately commit () because the option is greyed out. I need to remove or add a character in order to be able to commit.

To Reproduce
Steps to reproduce the behavior:

  1. Try to commit a change (c).
  2. See the predefined commit message in the text area.
  3. Try to commit ().
  4. It doesn't work because the option is greyed out.

Expected behavior

  1. Try to commit a change (c).
  2. See the predefined commit message in the text area.
  3. Try to commit ().
  4. Changes are commited.

Screenshots

Screencast.webm

Context (please complete the following information):

  • OS/Distro + Version: Ubuntu 23.04
  • GitUI Version 0.24.3
  • Rust version: not installed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions