diff --git a/packages/next/src/trace/trace-uploader.ts b/packages/next/src/trace/trace-uploader.ts index 786fb49f15dd5..3de3e16f13a1d 100644 --- a/packages/next/src/trace/trace-uploader.ts +++ b/packages/next/src/trace/trace-uploader.ts @@ -80,7 +80,7 @@ interface TraceMetadata { const commit = child_process .spawnSync( - os.platform() === 'win32' ? 'git.cmd' : 'git', + os.platform() === 'win32' ? 'git.exe' : 'git', ['rev-parse', 'HEAD'], { shell: true } )