From fc0625a2a6cbaf239d0b98138f819ea4fde60a1c Mon Sep 17 00:00:00 2001 From: Lucas Brandstaetter <lucas@brandstaetter.tech> Date: Tue, 8 Oct 2024 21:05:28 +0200 Subject: [PATCH] Fix glob to recursive Search for *.md files recursively in the base_path directory. --- src/core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/utils.py b/src/core/utils.py index e69123e00..bb36fbf41 100644 --- a/src/core/utils.py +++ b/src/core/utils.py @@ -331,7 +331,7 @@ class GitRepo: :return: a dictionary mapping filenames to that file's text content """ documents = {} - for file in self.base_path.glob(glob): + for file in self.base_path.rglob(glob): # we are only interested in actual files if not file.is_file(): continue -- GitLab