]> git.eshelyaron.com Git - emacs.git/commitdiff
Ensure 'package-vc-prepare-patch' runs in the right directory
authorPhilip Kaludercic <philipk@posteo.net>
Wed, 16 Nov 2022 09:46:43 +0000 (10:46 +0100)
committerPhilip Kaludercic <philipk@posteo.net>
Thu, 17 Nov 2022 19:55:04 +0000 (20:55 +0100)
* lisp/emacs-lisp/package-vc.el (package-vc-prepare-patch): Bind
'default-directory'.p

lisp/emacs-lisp/package-vc.el

index 7edecddaa1ed0fdd360b90920be6ac5585ae32bb..84c4dda6f4a1b9cf15fdcd6fb5614a6c5966ee44 100644 (file)
@@ -780,8 +780,9 @@ marked revisions, use those."
          (and (not vc-prepare-patches-separately)
               (read-string "Subject: " "[PATCH] " nil nil t))
          (vc-prepare-patch-prompt-revisions)))
-  (vc-prepare-patch (package-maintainers pkg-desc t)
-                    subject revisions))
+  (let ((default-directory (package-desc-dir pkg-desc)))
+    (vc-prepare-patch (package-maintainers pkg-desc t)
+                      subject revisions)))
 
 (provide 'package-vc)
 ;;; package-vc.el ends here