From 0ef47610924e478cd920716dd7ffd7921aebb69b Mon Sep 17 00:00:00 2001 From: Will Binns-Smith Date: Mon, 28 Aug 2023 17:19:03 -0700 Subject: [PATCH] Trace uploader: fix git binary on windows (#54580) Closes WEB-1449 --- 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 } )