diff --git a/lib/cso/snapshot.ts b/lib/cso/snapshot.ts index 791b4e94b..7899dc0fd 100644 --- a/lib/cso/snapshot.ts +++ b/lib/cso/snapshot.ts @@ -953,7 +953,9 @@ export async function capture( if (!(error instanceof CsoError) || error.code !== 'MISSING_INPUT') throw error; } guard(); - const commits = withholdHistory(patched ?? '', exclusion).split(/^(?=commit [0-9a-f]{40}(?:[0-9a-f]{24})?$)/m).filter(Boolean), + const commits = withholdHistory(patched ?? '', exclusion) + .split(/^(?=commit [0-9a-f]{40}(?:[0-9a-f]{24})?$)/m) + .filter(Boolean), sizes = commits.map((commit) => Buffer.byteLength(commit)), whole = sizes.reduce((sum, size) => sum + size, 0) <= MAX_OUTPUT; let kept = 0,