Unset projectile-git-submodule-command if tr is unavailable

Otherwise windows users can't use projectile in projects with
submodules.
This commit is contained in:
Henrik Lissner
2019-10-29 10:45:10 -04:00
parent 196c716c74
commit 2a6b1a1fb6

View File

@ -142,7 +142,10 @@ c) are not valid projectile projects."
;; ensure Windows users get rg's benefits
projectile-indexing-method 'alien)
;; fix breakage on windows in git projects
(unless (executable-find "tr")
(unless (executable-find "tr")
(setq projectile-git-submodule-command nil)))
((not (executable-find "tr"))
(setq projectile-git-submodule-command nil)))
(defadvice! doom--projectile-cache-timers-a ()