Fix precommit hook on Windows

This commit is contained in:
Alexandru Dima 2021-01-25 17:46:09 +01:00
parent c79a0282da
commit d21d85a3fc
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0

View file

@ -202,7 +202,7 @@ function createGitIndexVinyls(paths) {
}
cp.exec(
`git show ':${relativePath}'`,
process.platform === 'win32' ? `git show :${relativePath}` : `git show ':${relativePath}'`,
{ maxBuffer: 2000 * 1024, encoding: 'buffer' },
(err, out) => {
if (err) {