From b4654a24e2d40c1c0e324072d99c335a52db8de6 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sat, 7 Sep 2024 11:40:05 +0300 Subject: [PATCH] fixed lastmod.ts --- quartz/plugins/transformers/lastmod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quartz/plugins/transformers/lastmod.ts b/quartz/plugins/transformers/lastmod.ts index 3473bdda4..3dd3f1556 100644 --- a/quartz/plugins/transformers/lastmod.ts +++ b/quartz/plugins/transformers/lastmod.ts @@ -58,7 +58,7 @@ export const CreatedModifiedDate: QuartzTransformerPlugin> = (u // Get a reference to the main git repo. // It's either the same as the workdir, // or 1+ level higher in case of a submodule/subtree setup - repo = Repository.discover(file.cwd) + repo = await Repository.discover(file.cwd, { search: true }); console.log(chalk.green(`Git repository found at: ${repo.path()}`)); }