Skip to content

Commit

Permalink
magit-tag-release: Use magit-run-git-with-editor
Browse files Browse the repository at this point in the history
If `--sign' or `--local-user' is used but `--annotate' is not, then we
don't read the message beforehand and `git tag' thus uses `$EDITOR' to
have the edit the message.  Make sure `$EDITOR' is `emacsclient'.

Also see #5102.
  • Loading branch information
tarsius committed Feb 28, 2024
1 parent 0032ffc commit 36be3d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/magit-tag.el
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ like \"/path/to/foo-bar\"."
(directory-file-name (magit-toplevel))))
ver)))))
args))))
(magit-run-git-async "tag" args (and msg (list "-m" msg)) tag)
(magit-run-git-with-editor "tag" args (and msg (list "-m" msg)) tag)
(set-process-sentinel
magit-this-process
(lambda (process event)
Expand Down

0 comments on commit 36be3d6

Please sign in to comment.