Fix precommit hook on Windows

上级 c79a0282
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册