branch: elpa/projectile
commit 0a4a89b3d9899a06e1d479cea85fdb1c0d79b655
Author: Bozhidar Batsov <bozhi...@batsov.dev>
Commit: Bozhidar Batsov <bozhi...@batsov.dev>

    [Fix #1893] Fix projectile-discover-projects-in-directory when called 
interactively
---
 CHANGELOG.md  | 1 +
 projectile.el | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index fdf7aeb612..883dc70132 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -23,6 +23,7 @@
 * [#1915](https://github.com/bbatsov/projectile/pull/1915): Fix dotnet-sln 
project-type recognition. (check `*.sln` files instead of `src/`)
 * [#1850](https://github.com/bbatsov/projectile/issues/1850): Ensure the 
presence of a project in `projectile-compilation-dir`.
 * [#1811](https://github.com/bbatsov/projectile/issues/1811): Revert a change 
to `projectile-ignored-directories` that had converted them into regular 
expressions.
+* [#1893](https://github.com/bbatsov/projectile/issues/1893): Fix 
`projectile-discover-projects-in-directory` when called interactively.
 
 ### Changes
 
diff --git a/projectile.el b/projectile.el
index eae4fde7c3..d284b67297 100644
--- a/projectile.el
+++ b/projectile.el
@@ -1183,6 +1183,9 @@ discover projects there."
   (interactive
    (list (read-directory-name "Starting directory: ")))
 
+  ;; set a default value for depth
+  (setq depth (or depth 1))
+
   (if (file-directory-p directory)
       (if (and (numberp depth) (> depth 0))
           ;; Ignore errors when listing files in the directory, because

Reply via email to