This commit is contained in:
parent
74ae3057f3
commit
b4654a24e2
@ -58,7 +58,7 @@ export const CreatedModifiedDate: QuartzTransformerPlugin<Partial<Options>> = (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()}`));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user