Ensure that directory is expanded in package-vc-checkout

* lisp/emacs-lisp/package-vc.el (package-vc-checkout): Expand
DIRECTORY.  (Bug#66115)
This commit is contained in:
Joseph Turner 2023-11-25 14:57:45 -08:00 committed by Eli Zaretskii
parent e551dd72f7
commit bf0b0c9c73

View 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))