(fix): check if path is remote before using file-truename (#970)

this prevents cache builds from stalling, on paths that point to remote files
This commit is contained in:
Mykhailo Shevchuk 2020-07-26 18:30:54 +02:00 committed by GitHub
parent 20f876aa6b
commit c536fd4f2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -584,7 +584,9 @@ it as FILE-PATH."
:point begin)) :point begin))
(names (pcase type (names (pcase type
("file" ("file"
(list (file-truename (expand-file-name path (file-name-directory file-path))))) (if (file-remote-p path)
(list path)
(list (file-truename (expand-file-name path (file-name-directory file-path))))))
("id" ("id"
(list (car (org-roam-id-find path)))) (list (car (org-roam-id-find path))))
((pred (lambda (typ) ((pred (lambda (typ)