Skip to content

Commit f12c390

Browse files
authored
fix(content-docs): do not echo git history to console (#5906)
1 parent a835c9b commit f12c390

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/docusaurus-plugin-content-docs/src/lastUpdate.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ export async function getFileLastUpdate(
4242
return null;
4343
}
4444

45-
const result = shell.exec(`git log -1 --format=%ct,%an ${filePath}`);
45+
const result = shell.exec(`git log -1 --format=%ct,%an ${filePath}`, {
46+
silent: true,
47+
});
4648
if (result.code !== 0) {
4749
throw new Error(
4850
`Retrieval of git history failed at ${filePath} with exit code ${result.code}: ${result.stderr}`,

0 commit comments

Comments
 (0)