From 8c30cb90ba9fc1a7b60c25f43697687c587bb9ad Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Wed, 14 Dec 2022 10:05:55 +0200 Subject: [PATCH] * lisp/vc/vc-git.el (vc-git-checkin): Use make-nearby-temp-file (bug#60011) --- lisp/vc/vc-git.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2