[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master d1d444c2b78: File-expand DIRECTORY argument to vc-clone
From: |
Philip Kaludercic |
Subject: |
master d1d444c2b78: File-expand DIRECTORY argument to vc-clone |
Date: |
Fri, 22 Sep 2023 06:50:50 -0400 (EDT) |
branch: master
commit d1d444c2b789a90da584227ae314f29d79131848
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
File-expand DIRECTORY argument to vc-clone
* lisp/vc/vc.el (vc-clone): Expand directory to avoid issues when
invoking the subprocess. (Bug#66115)
---
lisp/vc/vc.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 2f4b028bb4a..7f334397a5e 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -3676,8 +3676,7 @@ If successful, returns the string with the directory of
the
checkout. If BACKEND is nil, iterate through every known backend
in `vc-handled-backends' until one succeeds. If REV is non-nil,
it indicates a specific revision to check out."
- (unless directory
- (setq directory default-directory))
+ (setq directory (expand-file-name (or directory default-directory)))
(if backend
(progn
(unless (memq backend vc-handled-backends)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master d1d444c2b78: File-expand DIRECTORY argument to vc-clone,
Philip Kaludercic <=