test: fix Windows test for gitUtils (#6951)

* test: fix Windows test for gitUtils

* change this

* fix
This commit is contained in:
Joshua Chen 2022-03-21 20:13:40 +08:00 committed by GitHub
parent 5ee7e8c48e
commit c696dc2cd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View file

@ -53,6 +53,8 @@ export function getFileCommitDate(
);
}
// Commit time and author name; not using author time so that amended commits
// can have their dates updated
let formatArg = '--format=%ct';
if (includeAuthor) {
formatArg += ',%an';