Skip to content

Using git config --global core.editor "kate" leads to "Aborting commit due to empty commit message" error #1893

@andrei-korshikov

Description

@andrei-korshikov

Checks:
(Sorry, I created the issue with Reference in new issue in Code view, so I crafted this section manually.)

  • There's no existing/similar bug report (I've searched for kate in issues).
  • This report is about a single actionable bug.
  • This report is about the ProGit book, version 2, English language.
  • Bug covers both book website and pdf
  • Problem is present in the Pro Git book on the website - YES
  • Which version of the book is affected? - Source files, at this very line

Steps to reproduce:

  1. Execute git config --global core.editor "kate" as written in Appendix C, core editor configuration commands
  2. Execute git commit. At this moment Kate is started, but git doesn't wait for Kate exiting, immediately complain with error Aborting commit due to empty commit message.

Solution:
Use git config --global core.editor "kate --block" instead. Now git says hint: Waiting for your editor to close the file... and everything is working as expected.

Additional info:
The same problem and the same solution proposed on LinuxQuestions.org.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions