mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-02 17:38:12 +02:00
fix(content-docs): do not echo git history to console (#5906)
This commit is contained in:
parent
a835c9bc48
commit
f12c390a17
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,9 @@ export async function getFileLastUpdate(
|
|||
return null;
|
||||
}
|
||||
|
||||
const result = shell.exec(`git log -1 --format=%ct,%an ${filePath}`);
|
||||
const result = shell.exec(`git log -1 --format=%ct,%an ${filePath}`, {
|
||||
silent: true,
|
||||
});
|
||||
if (result.code !== 0) {
|
||||
throw new Error(
|
||||
`Retrieval of git history failed at ${filePath} with exit code ${result.code}: ${result.stderr}`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue