The Trans Directory
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(lastmod): fallback to ctx.arg.directory instead of empty string

+1 -1
+1 -1
quartz/plugins/transformers/lastmod.ts
··· 39 39 if (opts.priority.includes("git")) { 40 40 try { 41 41 repo = Repository.discover(ctx.argv.directory) 42 - repositoryWorkdir = repo.workdir() ?? "" 42 + repositoryWorkdir = repo.workdir() ?? ctx.argv.directory 43 43 } catch (e) { 44 44 console.log( 45 45 chalk.yellow(`\nWarning: couldn't find git repository for ${ctx.argv.directory}`),