]> git.eshelyaron.com Git - emacs.git/commitdiff
Ensure that directory is expanded in package-vc-checkout
authorJoseph Turner <joseph@breatheoutbreathe.in>
Sat, 25 Nov 2023 22:57:45 +0000 (14:57 -0800)
committerEli Zaretskii <eliz@gnu.org>
Sun, 26 Nov 2023 10:40:27 +0000 (12:40 +0200)
* lisp/emacs-lisp/package-vc.el (package-vc-checkout): Expand
DIRECTORY.  (Bug#66115)

lisp/emacs-lisp/package-vc.el

index c7a30736e32eaae5ace6a370e566d35ad63c934c..2a5f14b3ee3d24742f1aa263dc6215dc85b1098b 100644 (file)
@@ -829,6 +829,7 @@ for the last released version of the package."
                            (lambda (dir) (or (not (file-exists-p dir))
                                              (directory-empty-p dir))))
            (and current-prefix-arg :last-release))))
+  (setf directory (expand-file-name directory))
   (package-vc--archives-initialize)
   (let ((pkg-spec (or (package-vc--desc->spec pkg-desc)
                       (and-let* ((extras (package-desc-extras pkg-desc))