When I run projectile-find-file
in GUI (non-terminal) Emacs, the project directory is set to the directory I most recently cd
'd to in a terminal window.
Let's say that I have a home directory not under version control, as well as two Git projects, ~/foo
and ~/bar
. If I do the following
- Open a file in
~/foo
in Emacs. - Open a terminal window and run
cd ~/bar
. - Run
M-x projectile-find-file
.
it will show me the files in ~/bar
.
And if I cd
to the home directory in iTerm, I get this message:
fatal: Not a git repository (or any of the parent directories): .git
The expected behavior is that it would show the files in ~/foo
regardless of what directory was most recently cd
'd into.
When I run projectile-project-info
, it shows the correct project directory (e.g., Project dir: /Users/pat/foo ## Project VCS: git ## Project type: emacs-cask
).
I don't know whether this is a bug or I configured something wrong. It used to work correctly. I'm using Emacs 25.1 and Projectile 20160921.902.