1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-01 08:17:38 +00:00

* lisp/vc/vc-git.el (vc-git-checkin): Use make-nearby-temp-file (bug#60011)

This commit is contained in:
Juri Linkov 2022-12-14 10:05:55 +02:00
parent 3efe4df1d2
commit 8c30cb90ba

View File

@ -1041,7 +1041,7 @@ It is based on `log-edit-mode', and has Git-specific extensions."
(string-replace file-diff "" vc-git-patch-string))
(user-error "Index not empty"))
(setq pos (point))))))
(let ((patch-file (make-temp-file "git-patch")))
(let ((patch-file (make-nearby-temp-file "git-patch")))
(with-temp-file patch-file
(insert vc-git-patch-string))
(unwind-protect