Skip to content

Set maxBuffer on runLog to avoid ENOBUFS on large commit ranges#103

Merged
RomainCscn merged 1 commit into
mainfrom
fix/runlog-enobuf
Jun 9, 2026
Merged

Set maxBuffer on runLog to avoid ENOBUFS on large commit ranges#103
RomainCscn merged 1 commit into
mainfrom
fix/runlog-enobuf

Conversation

@RomainCscn

Copy link
Copy Markdown
Collaborator

Fixes LIN-72561. runLog ran git log via execSync with no maxBuffer, inheriting Node's 1 MB default — wide ranges with full commit bodies threw spawnSync /bin/sh ENOBUFS and aborted the sync. Caps at a finite 256 MB (bounded, not Infinity). Fixes both the range read and the silently-dropped single-commit path, since both go through runLog.

@linear-code

linear-code Bot commented Jun 8, 2026

Copy link
Copy Markdown
@RomainCscn RomainCscn requested a review from axelniklasson June 8, 2026 13:39
@RomainCscn RomainCscn merged commit 927b1e5 into main Jun 9, 2026
10 checks passed
@RomainCscn RomainCscn deleted the fix/runlog-enobuf branch June 9, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants