Subject: bug#62735: 30.0.50; project.el project-search errors because project-files returns directories

From: Dmitry Gutov <[email-masked]>
Date: Mon, 10 Apr 2023 02:32:28 +0300

On 10/04/2023 02:25, Robert Nikander wrote:
> I don’t think it’s a submodule anymore. The directory does have a .git folder in it though (like a submodule). The directory was simply copied into the project tree like that, as part of moving it between projects. There is no '.gitmodules' file anywhere. So my guess is this bug was being triggered by the mere existence of the .git directory nested a few layers down in my project. That .git directory is not going to stay there, it’s going to get deleted, but of course it still shouldn’t crash the emacs command.

All right. So it's a different situation, but one we shouldn't have to 
try to support since it's going to be fixed manually.

But the same thing can happen when submodules are used, so the fix is 
still useful. Good to know this is still the main case where we might 
need to filter by file type.