Commit 892ca025 authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-commit: really commit everything after confirmation

Closes #3221.
parent a5eac741
......@@ -163,7 +163,8 @@ With a prefix argument, amend to the commit at `HEAD' instead.
(when (member "--all" args)
(setq this-command 'magit-commit-all))
(when (setq args (magit-commit-assert args))
(magit-run-git-with-editor "commit" args)))
(let ((default-directory (magit-toplevel)))
(magit-run-git-with-editor "commit" args))))
(defun magit-commit-amend (&optional args)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment