Skip to content

Commit a552e5b

Browse files
committed
Add gross fix for unreadable .git dir in helm-interfile-omni
1 parent c4683ff commit a552e5b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/config-helm.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,11 @@
395395
(when projectile-root
396396
(projectile-maybe-invalidate-cache nil))
397397

398+
(let ((git-dir (expand-file-name ".git" projectile-root)))
399+
(when (and (file-exists-p git-dir)
400+
(not (file-readable-p git-dir)))
401+
(setq projectile-root nil)))
402+
398403
(unwind-protect
399404
(helm :sources
400405
(append

0 commit comments

Comments
 (0)