branch: elpa/dirvish commit f85a88216dfc6e952854595281b56c5b7b716557 Author: Patryk Wychowaniec <pwychowan...@pm.me> Commit: GitHub <nore...@github.com>
fix(tramp): handle process-file evaluating to nil (#334) --- dirvish-tramp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dirvish-tramp.el b/dirvish-tramp.el index ab4c8f94db..79e097e9a8 100644 --- a/dirvish-tramp.el +++ b/dirvish-tramp.el @@ -35,7 +35,7 @@ FN is the original `dired-noselect' closure." (gnuls "ls") (buffer (cond ((eq async-type 'local) (funcall fn dir flags)) (saved-flags (funcall fn dir saved-flags)) ; skip - ((= (process-file gnuls nil nil nil "--version") 0) + ((= (or (process-file gnuls nil nil nil "--version") 1) 0) (push (cons remote flags) dirvish-tramp-hosts) (funcall fn dir flags)) (t (setq gnuls nil)