Fix projectile on Windows failing to index anything with ripgrep

Due to unescaped glob arguments.

Fixes #2897, and possibly #1803
This commit is contained in:
Henrik Lissner 2020-05-02 17:41:36 -04:00
parent f998c912c1
commit b51c4fc8b3
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 6 additions and 3 deletions

View file

@ -270,7 +270,8 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
((executable-find "rg")
(append (list "rg" "--files" "--follow" "--color=never" "--hidden" "--no-messages")
(cl-loop for dir in projectile-globally-ignored-directories
collect "--glob" and collect (concat "!" dir))
collect "--glob"
collect (concat "!" dir))
(if IS-WINDOWS (list "--path-separator" "/"))))
((cons find-program args)))
(unless (listp args)