How to commit using magit

What happened?

Unable to commit using magit

What did you expect to happen?

Commit with magit, but instead I ge this error.

  1 git --no-pager --literal-pathspecs -c core.preloadindex\=true -c log.showSignature\=false -c color.ui\=false -c color.diff\=false commit --
hint: Waiting for your editor to close the file...
Waiting for Emacs...
*ERROR*: Wrong type argument: keymapp, nil

The toggle on error produces the following backtrace:

Debugger entered--Lisp error: (error "Unknown option ‘--wait’")
  signal(error ("Unknown option ‘--wait’"))
  error("Unknown option `%s'" "--wait")
  #f(compiled-function (args-left) "A subroutine of `command-line'." #<bytecode -0x37c05ab03352e2d>)(("--wait" "/home/henri/Documents/infrastructure/.git/COMMIT_E..."))
  apply(#f(compiled-function (args-left) "A subroutine of `command-line'." #<bytecode -0x37c05ab03352e2d>) ("--wait" "/home/henri/Documents/infrastructure/.git/COMMIT_E..."))
  command-line-1(("--wait" "/home/henri/Documents/infrastructure/.git/COMMIT_E..."))
  command-line()
  normal-top-level()

Why does the emacsclient contain the --wait flag?

Steps to reproduce

  1. install doom emacs
  2. commit

System information


Loading data dump...

Thank you for any help.