Debug project-find-file for briefcase

As the name suggests, `f-parent-of?` only returns true when A is a *parent* of
B. What I want instead if `f-ancestor-of?`.
This commit is contained in:
William Carroll 2020-09-07 15:41:54 +01:00
parent 9773bc32ee
commit 12b5a10b05

View file

@ -221,7 +221,7 @@
;; ancestor .gitignore files.
(if (f-equal? constants-briefcase dir)
(cons 'vc dir)
(when (f-parent-of? constants-briefcase dir)
(when (f-ancestor-of? constants-briefcase dir)
(if (f-exists? (f-join dir "default.nix"))
(cons 'transient dir)
(wpc-misc--briefcase-find (f-parent dir))))))