"Aborting commit due to empty commit message" with WSL


#1

Hello,

I use Bash with Ubuntu on the Windows Subsystem for Linux.

Steps to reproduce:

  • Run git commit
  • the Atom window opens, but its empty,
  • I add a message in the first line
  • I close the atom window
  • Get Aborting commit due to empty commit message. in the console

COMMIT_EDITMSG was not empty in the tutorial I am following. I am new with git and programming in general.

git commit -m " " works though

I tried searching multiple threads with a similar problem without finding a solution.

I can successfully run commands like atom . to open the current working directory from bash with Atom.