From 31b1d79aa83244790e8385686d0237512b11925a Mon Sep 17 00:00:00 2001 From: Will Binns-Smith Date: Fri, 25 Aug 2023 14:40:57 -0700 Subject: [PATCH] Trace uploader: fix git binary on windows --- packages/next/src/trace/trace-uploader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } )