branch: externals/vc-jj
commit 0b0f423ea9ccca4e8266d36ff34559c310afb122
Author: Rudi Schlatte <r...@constantly.at>
Commit: Rudi Schlatte <r...@constantly.at>
    Use expand-file-name instead of file-name-concat
    
    For the rationale, see
    https://lists.gnu.org/archive/html/emacs-devel/2025-02/msg00928.html
    
    Most of the concerns in that message do not apply, but the project
    root could be remote; better safe than sorry.
---
 project-jj.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/project-jj.el b/project-jj.el
index 2e55943642..aa1be2021a 100644
--- a/project-jj.el
+++ b/project-jj.el
@@ -36,7 +36,7 @@
   ;; (tilde-expanded) filenames.
   (let* ((default-directory (expand-file-name (project-root project)))
          (args (cons "--" (mapcar #'file-relative-name dirs))))
-    (mapcar (apply-partially #'file-name-concat default-directory)
+    (mapcar #'expand-file-name
             (apply #'process-lines "jj" "file" "list" args))))
 
 (defun project-try-jj (dir)

Reply via email to