mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-04 02:18:04 +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;
|
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) {
|
if (result.code !== 0) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Retrieval of git history failed at ${filePath} with exit code ${result.code}: ${result.stderr}`,
|
`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