mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-19 20:17:06 +02:00
fix(v1): enableUpdateTime fails if local directory name has spaces (#2993)
Co-authored-by: Amirul Ahmad <amirul.ahmad@oleo.co.uk>
This commit is contained in:
parent
d513dec521
commit
f16258b19b
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ function getGitLastUpdated(filepath) {
|
|||
const silentState = shell.config.silent; // Save old silent state.
|
||||
shell.config.silent = true;
|
||||
const result = shell
|
||||
.exec(`git log --follow --summary --format="%ct, %an" ${filepath}`)
|
||||
.exec(`git log --follow --summary --format="%ct, %an" "${filepath}"`)
|
||||
.stdout.trim();
|
||||
shell.config.silent = silentState;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue