Skip to content

Commit

Permalink
[Fix #1893] Fix projectile-discover-projects-in-directory when called…
Browse files Browse the repository at this point in the history
… interactively
  • Loading branch information
bbatsov committed Jan 31, 2025
1 parent c64975d commit 0a4a89b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a4a89b

Please sign in to comment.