branch: externals/vc-jj
commit 4ebe18748760ad86cabb18349666bbdb30055fe1
Author: babariviere <[email protected]>
Commit: Bastien Riviere <[email protected]>

    fix: invalid command generated by project-files
    
    When running `project-find-file` on a jujutsu project, this error would 
appear:
    
    ```
    process-file: Wrong type argument: stringp, ("./")
    ```
    
    This is because the generated command was as follow: `jj ("./") file list`.
    This commit revert to the previous behavior where files where appended like 
this: `jj file list -- <files>`
    
    Copyright-paperwork-exempt: yes
---
 project-jj.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/project-jj.el b/project-jj.el
index d68f24f758..f5d9619383 100644
--- a/project-jj.el
+++ b/project-jj.el
@@ -39,8 +39,8 @@
       (progn
         (require 'vc-jj)
         (let* ((default-directory (expand-file-name (project-root project)))
-               (files (vc-jj--process-lines (mapcar #'file-relative-name dirs)
-                                            "file" "list")))
+               (args (cons "--" (mapcar #'file-relative-name dirs)))
+               (files (apply #'vc-jj--process-lines "file" "list" args)))
           (mapcar #'expand-file-name files)))
     (cl-call-next-method)))
 

Reply via email to