branch: elpa/projectile
commit 0a4c2222154daf3e715e41e8abdeaf280a9adc5a
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    Normalize project root to truename in projectile-ignored-project-p
    
    projectile-ignored-projects returns truename-resolved paths, but
    callers pass abbreviated or unnormalized paths. The member check
    would fail to match (e.g., ~/work/ vs /Users/bob/work/). Resolve
    project-root to truename before comparing.
---
 projectile.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/projectile.el b/projectile.el
index 3e3dbac606..eae6b32cac 100644
--- a/projectile.el
+++ b/projectile.el
@@ -5932,9 +5932,10 @@ Return a list of projects removed."
 
 (defun projectile-ignored-project-p (project-root)
   "Return t if PROJECT-ROOT should not be added to 
`projectile-known-projects'."
-  (or (member project-root (projectile-ignored-projects))
-      (and (functionp projectile-ignored-project-function)
-           (funcall projectile-ignored-project-function project-root))))
+  (let ((project-root (file-truename project-root)))
+    (or (member project-root (projectile-ignored-projects))
+        (and (functionp projectile-ignored-project-function)
+             (funcall projectile-ignored-project-function project-root)))))
 
 ;;;###autoload
 (defun projectile-add-known-project (project-root)

Reply via email to