From 2a6b1a1fb67c61602677fd7037d9c44d93c6374a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 29 Oct 2019 10:45:10 -0400 Subject: [PATCH] Unset projectile-git-submodule-command if tr is unavailable Otherwise windows users can't use projectile in projects with submodules. --- core/core-projects.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/core-projects.el b/core/core-projects.el index 01654e0d6..f37babe59 100644 --- a/core/core-projects.el +++ b/core/core-projects.el @@ -142,7 +142,10 @@ c) are not valid projectile projects." projectile-indexing-method 'alien) ;; fix breakage on windows in git projects (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 () "Persist `projectile-projects-cache-time' across sessions, so that