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:
Amirul Ahmad 2020-06-25 17:00:54 +01:00 committed by GitHub
parent d513dec521
commit f16258b19b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;