Skip to content

Commit

Permalink
fix(v1): enableUpdateTime fails if local directory name has spaces (#…
Browse files Browse the repository at this point in the history
…2993)

Co-authored-by: Amirul Ahmad <amirul.ahmad@oleo.co.uk>
  • Loading branch information
amirulahmad and amirulahmadoleo authored Jun 25, 2020
1 parent d513dec commit f16258b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus-1.x/lib/core/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f16258b

Please sign in to comment.