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
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -142,7 +142,10 @@ c) are not valid projectile projects."
projectile-indexing-method 'alien) projectile-indexing-method 'alien)
;; fix breakage on windows in git projects ;; fix breakage on windows in git projects
(unless (executable-find "tr") (unless (executable-find "tr")
(setq projectile-git-submodule-command nil)))) (setq projectile-git-submodule-command nil)))
((not (executable-find "tr"))
(setq projectile-git-submodule-command nil)))
(defadvice! doom--projectile-cache-timers-a () (defadvice! doom--projectile-cache-timers-a ()
"Persist `projectile-projects-cache-time' across sessions, so that "Persist `projectile-projects-cache-time' across sessions, so that