]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc/vc-git.el (vc-git-checkin): Use make-nearby-temp-file (bug#60011)
authorJuri Linkov <juri@linkov.net>
Wed, 14 Dec 2022 08:05:55 +0000 (10:05 +0200)
committerJuri Linkov <juri@linkov.net>
Wed, 14 Dec 2022 08:05:55 +0000 (10:05 +0200)
lisp/vc/vc-git.el

index 38e9d5f9c91e74432d919339b840bb82859a33bb..b5959d535c03e5f44378ef450bdd5298dca7d862 100644 (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