vc-git--mailinfo: Use file-local-name (bug#80295, bug#80320)

* lisp/vc/vc-git.el (vc-git--mailinfo):
Use file-local-name (bug#80295, bug#80320).
This commit is contained in:
Visuwesh 2026-02-05 12:11:53 +00:00 committed by Sean Whitton
parent dda572a2fa
commit e2f9e6ba7d

View file

@ -1472,7 +1472,9 @@ line of the commit message in an entry with key \"Subject\"."
(if (eq system-type 'windows-nt)
locale-coding-system
coding-system-for-write)))
(vc-git--call input-file t "mailinfo" msg-file patch-file))
(vc-git--call input-file t "mailinfo"
(file-local-name msg-file)
(file-local-name patch-file)))
(goto-char (point-min))
;; git-mailinfo joins up any header continuation lines for us.
(while (re-search-forward "^\\([^\t\n\s:]+\\):\\(.*\\)$" nil t)