From: Juri Linkov Date: Wed, 14 Dec 2022 08:05:55 +0000 (+0200) Subject: * lisp/vc/vc-git.el (vc-git-checkin): Use make-nearby-temp-file (bug#60011) X-Git-Tag: emacs-29.0.90~1190 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8c30cb90ba9;p=emacs.git * lisp/vc/vc-git.el (vc-git-checkin): Use make-nearby-temp-file (bug#60011) --- diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 38e9d5f9c91..b5959d535c0 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el @@ -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